Skip to content

Commit e297081

Browse files
committed
fix util test
1 parent 1d00c1f commit e297081

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/test_utils.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@
99

1010

1111
def test_to_absolute_path():
12-
input_path = "~/nonexistent_file.txt"
12+
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+
1318
parsed = utils.to_absolute_path(input_path)
14-
expected = Path.home() / "nonexistent_file.txt"
19+
1520
assert parsed == expected
1621

1722

0 commit comments

Comments
 (0)