Skip to content

Commit

Permalink
Resolve temp dir in unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Bram Stoeller <bram.stoeller@alliander.com>
  • Loading branch information
bramstoeller committed Mar 2, 2023
1 parent b4c37c0 commit 5f8f32a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/utils/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def test_get_download_path__auto_dir():
path = get_download_path(file_name="file_name.zip")

# Assert
assert path == Path(tempfile.gettempdir()).absolute() / "file_name.zip"
assert path == Path(tempfile.gettempdir()).resolve() / "file_name.zip"


def test_get_download_path__auto_file_name(temp_dir: Path):
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/utils/test_zip_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@pytest.fixture()
def temp_dir():
with tempfile.TemporaryDirectory() as tmp:
yield Path(tmp)
yield Path(tmp).resolve()


@patch("power_grid_model_io.utils.download.tqdm")
Expand Down

0 comments on commit 5f8f32a

Please sign in to comment.