Skip to content

Commit dfa4d98

Browse files
committed
Fix path separators in tests
1 parent 6fc01ea commit dfa4d98

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/test_notebook2script.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,9 @@ def test_cli(tmp_pathplus):
9797
args=[normpath(tests_dir / "example_notebook.ipynb"), "--outdir", normpath(outdir)],
9898
)
9999
assert result.exit_code == 0
100-
assert result.stdout == dedent(
101-
f"""\
102-
Converting {normpath(tests_dir)}/example_notebook.ipynb to {normpath(tmp_pathplus)}/output/example_notebook.py
103-
"""
100+
assert result.stdout == (
101+
f"Converting {normpath(tests_dir/'example_notebook.ipynb')} "
102+
f"to {normpath(tmp_pathplus / 'output/example_notebook.py')}\n"
104103
)
105104

106105
check_output(outdir / "example_notebook.py")
@@ -117,10 +116,9 @@ def test_cli_glob(tmp_pathplus):
117116
args=[normpath(tests_dir / "*.ipynb"), "--outdir", normpath(outdir)],
118117
)
119118
assert result.exit_code == 0
120-
assert result.stdout == dedent(
121-
f"""\
122-
Converting {normpath(tests_dir)}/example_notebook.ipynb to {normpath(tmp_pathplus)}/output/example_notebook.py
123-
"""
119+
assert result.stdout == (
120+
f"Converting {normpath(tests_dir/'example_notebook.ipynb')} "
121+
f"to {normpath(tmp_pathplus / 'output/example_notebook.py')}\n"
124122
)
125123

126124
check_output(outdir / "example_notebook.py")

0 commit comments

Comments
 (0)