From 0d6109211f32c09d0cf39238053da63f3b615af6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 8 Jun 2024 20:26:50 +0200 Subject: [PATCH] Fix further windows tests --- tests/test_directory_operations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_directory_operations.py b/tests/test_directory_operations.py index 0b718060c..d64ff9c18 100644 --- a/tests/test_directory_operations.py +++ b/tests/test_directory_operations.py @@ -33,7 +33,7 @@ def test_create_userdata_dir(mocker, tmp_path, caplog) -> None: assert md.call_args[1]["parents"] is False assert log_has(f'Created user-data directory: {tmp_path / "bar"}', caplog) assert isinstance(x, Path) - assert str(x) == f"{tmp_path}/bar" + assert str(x) == str(tmp_path / "bar") def test_create_userdata_dir_and_chown(mocker, tmp_path, caplog) -> None: @@ -80,10 +80,10 @@ def test_copy_sample_files(mocker, tmp_path) -> None: assert copymock.call_count == 3 assert copymock.call_args_list[0][0][1] == str(tmp_path / "bar/strategies/sample_strategy.py") assert copymock.call_args_list[1][0][1] == str( - f"{tmp_path}/bar/hyperopts/sample_hyperopt_loss.py" + tmp_path / "bar/hyperopts/sample_hyperopt_loss.py" ) assert copymock.call_args_list[2][0][1] == str( - f"{tmp_path}/bar/notebooks/strategy_analysis_example.ipynb" + tmp_path / "bar/notebooks/strategy_analysis_example.ipynb" )