1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

update network cred ssh agent unit test with post_run_hook mock

This commit is contained in:
Wayne Witzel III 2016-09-19 14:24:01 -04:00
parent 83e23b7ac4
commit 23d7e70204

View File

@ -74,6 +74,7 @@ def test_net_cred_ssh_agent(mocker, get_ssh_version):
mocker.patch.object(run_job, 'should_use_proot', return_value=False)
mocker.patch.object(run_job, 'run_pexpect', return_value=('successful', 0))
mocker.patch.object(run_job, 'open_fifo_write', return_value=None)
mocker.patch.object(run_job, 'post_run_hook', return_value=None)
run_job.run(mock_job.id)
assert run_job.update_model.call_count == 3