💚 Fix a test
This commit is contained in:
1 parent
eba336221e
commit
1afd7d532c
1 file changed
+2
-1
@@ -484,7 +484,8 @@ class FileManagerTest(unittest.TestCase):
|
||||
|
||||
# assert that shutil was asked to copy the concatenated multistream
|
||||
self.assertEqual(2, len(mocked_shutil.call_args_list))
|
||||
self.assertTrue(isinstance(mocked_shutil.call_args_list[0].args[0], io.BytesIO))
|
||||
args, kwargs = mocked_shutil.call_args_list[0]
|
||||
self.assertTrue(isinstance(args[0], io.BytesIO))
|
||||
|
||||
# assert that the temporary file was deleted
|
||||
mocked_os.assert_called_once_with("tmp.file")
|
||||
|
||||
Reference in new issue
Block a user