Skip to content

Commit d2d7496

Browse files
committed
Add a test for $run input with commas (fix #26)
1 parent 5ab59e7 commit d2d7496

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
foo,bar
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$run(cat){foo,bar}

tests/test_nancy.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,16 @@ def test_run_with_input() -> None:
225225
)
226226

227227

228-
def test_writing_a_file_to_outputpath(capsys: CaptureFixture[str]) -> None:
228+
def test_run_with_input_containing_commas() -> None:
229+
with chdir(tests_dir):
230+
passing_test(
231+
[os.getcwd()],
232+
"run-input-with-commas-expected.txt",
233+
"run-input-with-commas.nancy.txt",
234+
)
235+
236+
237+
def test_writing_a_file_to_outputpath() -> None:
229238
with chdir(tests_dir):
230239
passing_test(
231240
["writing-file-to-outputpath-src"],

0 commit comments

Comments
 (0)