Skip to content

Commit 0071b41

Browse files
committed
squash: fix tests
1 parent d496d07 commit 0071b41

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

tests/unit/test_filesystem.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,12 @@ def test_fallback_to_shutil_copy_from_cp_failure(
215215

216216
tmt.utils.filesystem.copy_tree(src=source_dir, dst=dest_dir, logger=root_logger)
217217

218-
mock_copy_tree_cp.assert_called_once_with(source_dir, dest_dir, mock.ANY)
219-
mock_copy_tree_shutil.assert_called_once_with(source_dir, dest_dir, mock.ANY)
218+
mock_copy_tree_cp.assert_called_once_with(
219+
src=source_dir, dst=dest_dir, tmpdir_creator=None, logger=mock.ANY
220+
)
221+
mock_copy_tree_shutil.assert_called_once_with(
222+
src=source_dir, dst=dest_dir, tmpdir_creator=None, logger=mock.ANY
223+
)
220224

221225
# Verify files were copied using the fallback approach (shutil.copytree)
222226
for file_path in _EXPECTED_TEST_FILES:
@@ -272,8 +276,12 @@ def test_metadata_preservation_on_cp_failure_fallback_to_shutil(
272276

273277
tmt.utils.filesystem.copy_tree(src=source_dir, dst=dest_dir, logger=root_logger)
274278

275-
mock_copy_tree_cp.assert_called_once_with(source_dir, dest_dir, mock.ANY)
276-
mock_copy_tree_shutil.assert_called_once_with(source_dir, dest_dir, mock.ANY)
279+
mock_copy_tree_cp.assert_called_once_with(
280+
src=source_dir, dst=dest_dir, tmpdir_creator=None, logger=mock.ANY
281+
)
282+
mock_copy_tree_shutil.assert_called_once_with(
283+
src=source_dir, dst=dest_dir, tmpdir_creator=None, logger=mock.ANY
284+
)
277285
_run_metadata_test_for_item(dest_dir, test_file)
278286
_run_metadata_test_for_item(dest_dir, test_dir)
279287

0 commit comments

Comments
 (0)