Skip to content

Commit 906a66c

Browse files
committed
Fixed broken tests
1 parent 284db15 commit 906a66c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/client/contexts/test_fib.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,7 @@ def test_file_transferred_to(
248248
fib_maps_images: list[Path],
249249
fib_maps_metadata_file: Path,
250250
):
251-
# Mock the machine config and environment
252-
machine_config = {
253-
"rsync_basepath": tmp_path / "fib" / "data",
254-
}
251+
# Mock the environment
255252
mock_environment = MagicMock()
256253
mock_environment.default_destinations = {visit_dir: "current_year"}
257254
mock_environment.visit = "visit"
@@ -264,7 +261,7 @@ def test_file_transferred_to(
264261
environment=mock_environment,
265262
source=visit_dir,
266263
file_path=file,
267-
machine_config=machine_config,
264+
rsync_basepath=tmp_path / "fib" / "data",
268265
) == destination_dir / file.relative_to(visit_dir)
269266

270267

0 commit comments

Comments
 (0)