We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461deb1 commit 61a8cd5Copy full SHA for 61a8cd5
tests/cli/test_ls.py
@@ -1,5 +1,4 @@
1
import contextlib
2
-import os
3
import pathlib
4
5
import pytest
@@ -28,7 +27,7 @@ def test_ls_cli(
28
27
# - directories should be ignored
29
# - extensions not covered in VALID_WORKSPACE_DIR_FILE_EXTENSIONS
30
ignored_filenames = [".git/", ".gitignore/", "session_4.txt"]
31
- stems = [os.path.splitext(f)[0] for f in filenames if f not in ignored_filenames]
+ stems = [pathlib.Path(f).stem for f in filenames if f not in ignored_filenames]
32
33
for filename in filenames:
34
location = tmp_path / f".tmuxp/{filename}"
0 commit comments