Skip to content

Commit bda43b5

Browse files
authored
Merge pull request #6 from marimo-team/aka/pytest-pythonpath
Use pythonpath pytest config for tests
2 parents 1b9b64d + dcd858f commit bda43b5

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tool.pytest.ini_options]
2+
pythonpath = ["."]

tests/test_examples_without_error.py

-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
"""Smoke tests that check notebooks don't have syntax errors."""
22

3-
import pathlib
4-
import sys
5-
6-
ROOT = pathlib.Path(__file__).parent.parent
7-
sys.path.append(str(ROOT))
8-
93

104
def test_nlp_span_comparison() -> None:
115
from nlp_span_comparison import nlp_span_comparison

0 commit comments

Comments
 (0)