Skip to content

Commit

Permalink
Fix test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Spredzy committed Mar 16, 2021
1 parent e9efcc5 commit 6b19557
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions awx/main/tests/unit/models/test_ha.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
from unittest.mock import Mock

from awx.main.models import (
Job,
InstanceGroup,
)


def T(impact):
j = mock.Mock(Job())
j = mock.Mock(spec_set=['task_impact'])
j.task_impact = impact
return j

Expand Down
3 changes: 1 addition & 2 deletions awx/main/tests/unit/scheduler/test_kubernetes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
from unittest import mock
from django.conf import settings

from awx.main.models import (
Expand All @@ -14,7 +13,7 @@

@pytest.fixture
def container_group():
instance_group = mock.Mock(InstanceGroup(name='container-group'))
instance_group = InstanceGroup(name='container-group', id=1)

return instance_group

Expand Down

0 comments on commit 6b19557

Please sign in to comment.