Fix test on Linux
This commit is contained in:
parent
5293b00ca4
commit
06149997c0
|
@ -140,11 +140,13 @@ def test_get_dirs_from_args(tmp_path):
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"path, expected",
|
"path, expected",
|
||||||
[
|
[
|
||||||
(Path(f"e:{os.sep}"), True),
|
pytest.param(
|
||||||
(Path(f"{os.sep}"), True),
|
f"e:{os.sep}", True, marks=pytest.mark.skipif("sys.platform != 'win32'")
|
||||||
(Path(f"e:{os.sep}projects"), False),
|
),
|
||||||
(Path(f"{os.sep}projects"), False),
|
(f"{os.sep}", True),
|
||||||
|
(f"e:{os.sep}projects", False),
|
||||||
|
(f"{os.sep}projects", False),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_is_fs_root(path: Path, expected: bool) -> None:
|
def test_is_fs_root(path: Path, expected: bool) -> None:
|
||||||
assert is_fs_root(path) is expected
|
assert is_fs_root(Path(path)) is expected
|
||||||
|
|
Loading…
Reference in New Issue