Skip to content

Commit 1755646

Browse files
committed
fix(tests): add pyproject.toml so pytest picks up app.py from root
Without this, plain 'pytest' (as opposed to 'python -m pytest') fails to import app.py because the repo root isn't on sys.path. CI hit this on the first run.
1 parent 6357147 commit 1755646

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tool.pytest.ini_options]
2+
# Make `pytest` (without `python -m`) able to import app.py from the repo root.
3+
pythonpath = ["."]

0 commit comments

Comments
 (0)