From 1afd7d532c4b5d8b7762ea33906ea138d2776f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 15 Jul 2020 16:18:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20a=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/filemanager/test_filemanager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/filemanager/test_filemanager.py b/tests/filemanager/test_filemanager.py index a91ba727e..9bffbd7ff 100644 --- a/tests/filemanager/test_filemanager.py +++ b/tests/filemanager/test_filemanager.py @@ -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")