Proper install of playwright for TOX invocations

This commit is contained in:
Max Berger
2026-03-28 09:29:55 +01:00
parent ea43b98cad
commit 32a38e8802
2 changed files with 21 additions and 4 deletions

View File

@@ -82,6 +82,9 @@ skip_install = true
[tool.tox.env.integ_test]
deps = ["pytest", "pytest-playwright"]
# Store Playwright browsers inside .tox for better caching
setenv = { PLAYWRIGHT_BROWSERS_PATH = "{toxworkdir}/.playwright" }
commands_pre = [["playwright", "install", "chromium"]]
commands = [["pytest", "integ_tests"]]
[tool.pytest.ini_options]