From dcd858fc72de539b963d0d26f4004b2cfdeb5662 Mon Sep 17 00:00:00 2001 From: Akshay Agrawal Date: Tue, 14 Jan 2025 14:20:08 -0800 Subject: [PATCH] use pythonpath pytest config for tests --- pyproject.toml | 2 ++ tests/test_examples_without_error.py | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..3c32f93 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[tool.pytest.ini_options] +pythonpath = ["."] diff --git a/tests/test_examples_without_error.py b/tests/test_examples_without_error.py index 249cbd2..b4dc5b6 100644 --- a/tests/test_examples_without_error.py +++ b/tests/test_examples_without_error.py @@ -1,11 +1,5 @@ """Smoke tests that check notebooks don't have syntax errors.""" -import pathlib -import sys - -ROOT = pathlib.Path(__file__).parent.parent -sys.path.append(str(ROOT)) - def test_nlp_span_comparison() -> None: from nlp_span_comparison import nlp_span_comparison