Fix test on Linux

This commit is contained in:
Bruno Oliveira 2022-11-23 14:25:42 -03:00
parent 5293b00ca4
commit 06149997c0
1 changed files with 7 additions and 5 deletions

View File

@ -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