Adds playwright + pytest-playwright to workspace dev deps, an e2e pytest marker, and a live_server fixture that boots the Flask app on an ephemeral port with a temp SQLite DB. addopts default to -m 'not e2e' so the regular fast suite excludes them; explicit `pytest -m e2e` runs them. Smoke test confirms the live server is reachable. Workspace root pyproject.toml is the right place for the dev deps and pytest config — l4d2web/pyproject.toml is minimal and has neither. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
665 B
TOML
30 lines
665 B
TOML
[project]
|
|
name = "left4me"
|
|
version = "0.0.0"
|
|
description = "Workspace root for l4d2host and l4d2web; packaging lives in the members."
|
|
requires-python = ">=3.13"
|
|
dependencies = ["l4d2host", "l4d2web"]
|
|
|
|
[tool.uv]
|
|
package = false
|
|
|
|
[tool.uv.workspace]
|
|
members = ["l4d2host", "l4d2web"]
|
|
|
|
[tool.uv.sources]
|
|
l4d2host = { workspace = true }
|
|
l4d2web = { workspace = true }
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest",
|
|
"playwright>=1.49.0",
|
|
"pytest-playwright>=0.6.0",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["l4d2host/tests", "l4d2web/tests"]
|
|
addopts = ["--import-mode=importlib", "-m", "not e2e"]
|
|
markers = [
|
|
"e2e: end-to-end browser tests (slow, require chromium)",
|
|
]
|