Skip to content

Commit b680bf5

Browse files
author
Alistair Turnbull
committed
Test correct operation of $realpath for code coverage
1 parent 0f46c93 commit b680bf5

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
realpath.nancy.txt
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$realpath

tests/test_nancy.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@ def test_path_with_input_gives_an_error() -> None:
124124
)
125125

126126

127+
def test_realpath() -> None:
128+
with chdir(tests_dir):
129+
passing_test(
130+
["."],
131+
"realpath-expected.txt",
132+
"realpath.nancy.txt",
133+
)
134+
135+
127136
def test_realpath_with_arguments_gives_an_error() -> None:
128137
with chdir(tests_dir):
129138
failing_test(

0 commit comments

Comments
 (0)