Skip to content

Commit 67c865b

Browse files
committed
fix for patcher to make sure response is a list
1 parent 0b28ba8 commit 67c865b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ibllib/tests/test_oneibl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def test_patch_datasets(self):
126126

127127
# Mock the post method of AlyxClient and assert that it was called during registration
128128
with mock.patch.object(self.one.alyx, 'post') as rest_mock:
129-
rest_mock.side_effect = responses
129+
rest_mock.side_effect = [[r] for r in responses]
130130
self.globus_patcher.patch_datasets(file_list)
131131
self.assertEqual(rest_mock.call_count, 2)
132132
for call, file in zip(rest_mock.call_args_list, file_list):

0 commit comments

Comments
 (0)