fix test compatibility

This commit is contained in:
Tomas Kopecek 2024-06-12 11:00:54 +02:00
parent 2c6dba34e7
commit 2bd42517d3

View file

@ -408,7 +408,7 @@ class TasksTestCase(unittest.TestCase):
obj = TaskTest(123, 'some_method', ['random_arg'], None, None, temp_path)
obj.session = Mock()
self.assertEqual(obj.uploadFile(temp_file), None)
self.assertEqual(obj.session.uploadWrapper.called, False)
obj.session.uploadWrapper.assert_called_once()
def test_BaseTaskHandler_uploadTree(self):
""" Tests that the uploadTree function calls the uploadFile function