Skip to content

Commit 5542c34

Browse files
committed
update test
1 parent 87d1b2c commit 5542c34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/synapseclient/core/unit_test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def test_md5_for_file(mock_hashlib):
483483
file_name = "/home/foo/bar/test.txt"
484484
mock_callback = Mock()
485485
mock_md5 = Mock()
486-
mock_hashlib.md5.return_value = mock_md5
486+
mock_hashlib.new.return_value = mock_md5
487487
with patch.object(utils, "open", mock_open(), create=True) as mocked_open:
488488
mocked_open.return_value.read.side_effect = ["data1", "data2", None]
489489
utils.md5_for_file(file_name, callback=mock_callback)

0 commit comments

Comments
 (0)