From 9691e225724e041997c74f8665dcbfa12bb1c579 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 11 Mar 2022 11:51:02 +0300 Subject: Fix some linting issues --- tests/unit/test_file_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit/test_file_utils.py') diff --git a/tests/unit/test_file_utils.py b/tests/unit/test_file_utils.py index 7048d43..2c6f0b6 100644 --- a/tests/unit/test_file_utils.py +++ b/tests/unit/test_file_utils.py @@ -66,7 +66,7 @@ non-existent""" "upload-data.tar.gz") mock_tarfile.open.assert_called_once_with("/tmp/abcdef-abcdef/" "upload-data.tar.gz") - mock_tarfile.open.return_value.extractall.assert_called_once_with( + mock_tarfile.open.return_value.__enter__.return_value.extractall.assert_called_once_with( path='/tmp/abcdef-abcdef') mock_file.assert_called_once_with("upload-data.tar.gz") self.assertEqual(result, {"status": 0, "token": "abcdef-abcdef"}) -- cgit v1.2.3