From a47cd16792d53145b4bb7528615d6ba97b0052ce Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Thu, 8 Feb 2024 16:22:21 -0800 Subject: [PATCH] fix for tests/ dir not in sys.path, closes #2066 --- tests/test_nbconvertapp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_nbconvertapp.py b/tests/test_nbconvertapp.py index 764a79033..f181d9539 100644 --- a/tests/test_nbconvertapp.py +++ b/tests/test_nbconvertapp.py @@ -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") @@ -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" )