Skip to content

Commit

Permalink
Make test compatible with Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Sep 6, 2024
1 parent a15f4a7 commit 7f04e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ def test_no_copyright_licensing(self, fake_repository, stringio):
def test_path_outside_project(self, empty_directory, capsys):
"""A file can't be outside the project."""
with pytest.raises(SystemExit):
main(["lint-file", "/"])
assert "'/' is not in" in capsys.readouterr().err
main(["lint-file", ".."])
assert "'..' is not in" in capsys.readouterr().err

def test_file_not_exists(self, empty_directory, capsys):
"""A file must exist."""
Expand Down

0 comments on commit 7f04e3c

Please sign in to comment.