From e565160c6cb43377f1ab2510e7ff90e8326be95f Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Tue, 24 Oct 2023 21:00:28 +0200 Subject: [PATCH] Small Windows fix Signed-off-by: Carmen Bianca BAKKER --- tests/test_download.py | 4 +++- tests/test_main.py | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_download.py b/tests/test_download.py index e5eb310bf..669ef6e70 100644 --- a/tests/test_download.py +++ b/tests/test_download.py @@ -165,4 +165,6 @@ def test_put_custom_with_false_source_dir(fake_repository): "LICENSES/LicenseRef-hello.txt", source=fake_repository / "lics", ) - assert exc_info.value.filename.endswith("lics/LicenseRef-hello.txt") + assert exc_info.value.filename.endswith( + Path("lics") / "LicenseRef-hello.txt" + ) diff --git a/tests/test_main.py b/tests/test_main.py index cd5f78def..01f9df79b 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -491,7 +491,10 @@ def test_download_licenseref_false_source_dir(empty_directory, stringio): ["download", "--source", "lics", "LicenseRef-hello"], out=stringio ) assert result != 0 - assert "lics/LicenseRef-hello.txt does not exist" in stringio.getvalue() + assert ( + f"{Path('lics') / 'LicenseRef-hello.txt'} does not exist" + in stringio.getvalue() + ) def test_supported_licenses(stringio):