If a mock's assert_called_once_with method is misspelled (e.g. asert_called_once_with) then the test will appear as passing. Therefore, this commit removes all instances of assert_called_once_with calls and replaces them with two assertions: self.assertEqual(mock.call_count, 1) self.assertEqual(mock.call_args, mock.call(call_args)) |
||
---|---|---|
.. | ||
__init__.py | ||
test_demo.py | ||
test_heat_control.py | ||
test_honeywell.py |