diff --git a/awx/main/tests/unit/tasks/test_runner_callback.py b/awx/main/tests/unit/tasks/test_runner_callback.py index a944c2fc3bd1..90fa6e060400 100644 --- a/awx/main/tests/unit/tasks/test_runner_callback.py +++ b/awx/main/tests/unit/tasks/test_runner_callback.py @@ -3,7 +3,7 @@ from django.utils.translation import ugettext_lazy as _ -def test_delay_update(): +def test_delay_update(mock_me): rc = RunnerCallback() rc.delay_update(foo='bar') assert rc.extra_update_fields == {'foo': 'bar'} @@ -13,7 +13,7 @@ def test_delay_update(): assert rc.get_extra_update_fields() == {'foo': 'foobar', 'bar': 'foo', 'emitted_events': 0} -def test_delay_update_skip_if_set(): +def test_delay_update_skip_if_set(mock_me): rc = RunnerCallback() rc.delay_update(foo='bar', skip_if_already_set=True) assert rc.extra_update_fields == {'foo': 'bar'} @@ -21,7 +21,7 @@ def test_delay_update_skip_if_set(): assert rc.extra_update_fields == {'foo': 'bar'} -def test_delay_update_failure_fields(): +def test_delay_update_failure_fields(mock_me): rc = RunnerCallback() rc.delay_update(job_explanation='1') rc.delay_update(job_explanation=_('2'))