Skip to content

Commit

Permalink
fix for tests/ dir not in sys.path, closes #2066 (#2108)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanov authored Feb 9, 2024
1 parent e4fa628 commit 3a37b54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_nbconvertapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def test_convert_full_qualified_name(self):
"""
with self.create_temp_cwd():
self.copy_files_to(["notebook*.ipynb"], "subdir")
self.copy_files_to(["../fake_exporters.py"], "tests")
self.nbconvert(
"--to tests.fake_exporters.MyExporter --log-level 0 "
+ os.path.join("subdir", "*.ipynb")
Expand Down Expand Up @@ -177,6 +178,7 @@ def test_pdf(self):
def test_post_processor(self):
"""Do post processors work?"""
with self.create_temp_cwd(["notebook1.ipynb"]):
self.copy_files_to(["../*.py"], "tests")
out, err = self.nbconvert(
"--log-level 0 --to python notebook1 --post tests.test_nbconvertapp.DummyPost"
)
Expand Down

0 comments on commit 3a37b54

Please sign in to comment.