We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d00c1f commit e297081Copy full SHA for e297081
1 file changed
tests/test_utils.py
@@ -9,9 +9,14 @@
9
10
11
def test_to_absolute_path():
12
- input_path = "~/nonexistent_file.txt"
+ input_path = "~/input_dir"
13
+ expected = Path.home() / "input_dir"
14
+
15
+ # care for windows, see issue 22
16
+ Path(expected).mkdir(exist_ok=True)
17
18
parsed = utils.to_absolute_path(input_path)
- expected = Path.home() / "nonexistent_file.txt"
19
20
assert parsed == expected
21
22
0 commit comments