mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
Merge pull request #1312 from AlanCoding/fix_silent_fail
fix silent traceback tests were causing
This commit is contained in:
@@ -222,7 +222,7 @@ class TestJobExecution:
|
|||||||
self.run_pexpect.return_value = ['successful', 0]
|
self.run_pexpect.return_value = ['successful', 0]
|
||||||
|
|
||||||
self.patches = [
|
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),
|
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
|
# don't emit websocket statuses; they use the DB and complicate testing
|
||||||
mock.patch.object(UnifiedJob, 'websocket_emit_status', mock.Mock()),
|
mock.patch.object(UnifiedJob, 'websocket_emit_status', mock.Mock()),
|
||||||
|
|||||||
Reference in New Issue
Block a user