Skip to content

Commit 5f8f32a

Browse files
committed
Resolve temp dir in unit tests
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
1 parent b4c37c0 commit 5f8f32a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/unit/utils/test_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def test_get_download_path__auto_dir():
367367
path = get_download_path(file_name="file_name.zip")
368368

369369
# Assert
370-
assert path == Path(tempfile.gettempdir()).absolute() / "file_name.zip"
370+
assert path == Path(tempfile.gettempdir()).resolve() / "file_name.zip"
371371

372372

373373
def test_get_download_path__auto_file_name(temp_dir: Path):

tests/unit/utils/test_zip_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@pytest.fixture()
2222
def temp_dir():
2323
with tempfile.TemporaryDirectory() as tmp:
24-
yield Path(tmp)
24+
yield Path(tmp).resolve()
2525

2626

2727
@patch("power_grid_model_io.utils.download.tqdm")

0 commit comments

Comments
 (0)