Skip to content

Commit 6b395e8

Browse files
committed
chore(tests): prevent pytest from recursing into frontend folder
pytest tries to collect `*.py` files in `frontend/node_modules`, which causes errors.
1 parent 228a6c8 commit 6b395e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

e2e/pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ asyncio_mode = auto
44
# https://playwright.dev/python/docs/test-runners#async-fixtures
55
asyncio_default_test_loop_scope = session
66
asyncio_default_fixture_loop_scope = session
7-
norecursedirs = "tests"
7+
norecursedirs = tests frontend

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ allow-dunder-method-names = ["__get_pydantic_core_schema__"]
9191
addopts = "--doctest-modules --ignore examples"
9292
markers = ["app_routes", "render_params", "source_pkg", "ui_file"]
9393
# We run E2E tests separately
94-
norecursedirs = "e2e"
94+
norecursedirs = "e2e frontend"
9595
# https://github.com/pytest-dev/pytest-asyncio#auto-mode
9696
asyncio_mode = "auto"
9797
# Module scope is recommended: https://pytest-asyncio.readthedocs.io/en/stable/concepts.html#asyncio-event-loops

0 commit comments

Comments
 (0)