From 69822391b34e62a646b6eff9dae63da40d0fcc15 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Tue, 10 Apr 2018 11:51:05 -0400 Subject: [PATCH] fix silent traceback tests were causing --- awx/main/tests/unit/test_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tests/unit/test_tasks.py b/awx/main/tests/unit/test_tasks.py index 9a17a12239..75a307dbb9 100644 --- a/awx/main/tests/unit/test_tasks.py +++ b/awx/main/tests/unit/test_tasks.py @@ -222,7 +222,7 @@ class TestJobExecution: self.run_pexpect.return_value = ['successful', 0] self.patches = [ - mock.patch.object(CallbackQueueDispatcher, 'dispatch', lambda obj: None), + mock.patch.object(CallbackQueueDispatcher, 'dispatch', lambda self, obj: None), mock.patch.object(Project, 'get_project_path', lambda *a, **kw: self.project_path), # don't emit websocket statuses; they use the DB and complicate testing mock.patch.object(UnifiedJob, 'websocket_emit_status', mock.Mock()),