-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtox.ini
45 lines (43 loc) · 1.02 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[tox]
envlist =
{py37,py38,py39,py310,py311,py312}-dj32
{py38,py39,py310,py311,py312}-dj40
{py38,py39,py310,py311,py312}-dj41
{py38,py39,py310,py311,py312}-dj42
{py310,py311,py312}-dj50
{py310,py311,py312}-dj51
playwright
[testenv]
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
deps =
pytest
pytest-django
pytest-playwright
factory-boy
coverage
dj32: django==3.2.*
dj40: django==4.0.*
dj41: django==4.1.*
dj42: django==4.2.*
dj50: django==5.0.*
dj51: django==5.1.*
description = run server/unit tests.
commands =
python -m pip freeze
python -m coverage run -m pytest tests/server
setenv =
PYTHONDEVMODE=1
[testenv:playwright]
deps =
{[testenv]deps}
django==5.1.*
description = run Playwright browser tests (no need to do this for different py/dj versions).
commands =
python -m playwright install --with-deps
python -m pytest tests/browser {posargs}