You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These tests will always pass. even if the call were changed to client.register('WTFBBQ'), client.register(NotImplementedError), or anything else.
(1) mock.called_once_with() does not exist. It should be mock.assert_called_once_with().
(2) The assert at the beginning of the line will pass on any truth-y value, including a mocked method.
The text was updated successfully, but these errors were encountered:
pymodbus/test/test_client_sync.py
Lines 192 to 203 in 152ad8d
pymodbus/test/test_client_sync.py
Lines 281 to 292 in 152ad8d
These tests will always pass. even if the call were changed to
client.register('WTFBBQ')
,client.register(NotImplementedError)
, or anything else.(1)
mock.called_once_with()
does not exist. It should bemock.assert_called_once_with()
.(2) The
assert
at the beginning of the line will pass on any truth-y value, including a mocked method.The text was updated successfully, but these errors were encountered: