Skip to content

Commit 37aa93e

Browse files
authored
Fix test (#919)
> AttributeError: 'called_once_with' is not a valid assertion. > Use a spec for the mock if 'called_once_with' is meant to be an attribute.. > Did you mean: 'assert_called_once_with'? Ref python/cpython#100690
1 parent bcc172e commit 37aa93e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/spdl_unittest/io/transfer_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def _test():
127127
# check 1
128128
mock_Stream.assert_called_once_with(device)
129129
# check 2
130-
mock_stream_func.called_once_with(mock_stream_obj)
130+
mock_stream_func.assert_called_once_with(mock_stream_obj)
131131
# Check 5
132132
mock_stream_obj.synchronize.assert_called_once()
133133

0 commit comments

Comments
 (0)