Skip to content

Commit

Permalink
chore(windows): add a few path test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
justindujardin committed Nov 17, 2022
1 parent abd28c4 commit 390baa1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pathy/_tests/test_pathy.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def test_pathy_fluid(with_adapter: str, bucket: str) -> None:
assert isinstance(path, BasePath)
path = Pathy.fluid("/dev/null")
assert isinstance(path, BasePath)
path = Pathy.fluid("C:\\Windows\\Path")
assert isinstance(path, BasePath)


@pytest.mark.parametrize("adapter", TEST_ADAPTERS)
Expand Down
1 change: 1 addition & 0 deletions pathy/_tests/test_pure_pathy.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def test_pure_pathy_scheme_extraction() -> None:
assert PurePathy("s3:https://var/tests/fake").scheme == "s3"
assert PurePathy("file:https://var/tests/fake").scheme == "file"
assert PurePathy("/var/tests/fake").scheme == ""
assert PurePathy("C:\\pathy\\subfolder").scheme == ""


@pytest.mark.skipif(sys.version_info < (3, 6), reason="requires python3.6 or higher")
Expand Down

0 comments on commit 390baa1

Please sign in to comment.