test doit: need to also mock sys.argv :/ :/ :/ :/
This commit is contained in:
parent
8f013a7bc7
commit
7238082f23
|
@ -4,6 +4,7 @@ from unittest.mock import patch
|
|||
|
||||
|
||||
def test_doit():
|
||||
with patch('sys.exit') as exit:
|
||||
with patch('sys.exit') as _exit:
|
||||
with patch('sys.argv') as argv:
|
||||
doit.run(dodo)
|
||||
exit.assert_called_with(0)
|
||||
_exit.assert_called_with(0)
|
||||
|
|
Loading…
Reference in New Issue