Skip to content

Commit

Permalink
Small Windows fix
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <carmenbianca@fsfe.org>
  • Loading branch information
carmenbianca committed Oct 24, 2023
1 parent 6c3de58 commit 9131afb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
str(Path("lics") / "LicenseRef-hello.txt")
)
5 changes: 4 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9131afb

Please sign in to comment.