-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
43 lines (37 loc) · 1.1 KB
/
Copy pathtox.ini
File metadata and controls
43 lines (37 loc) · 1.1 KB
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
[tox]
requires =
tox>=4.2
env_list =
py314-django{60, 52}-{sqlite,postgres,mysql}
py313-django{60, 52}-{sqlite,postgres,mysql}
py312-django{60, 52}-{sqlite,postgres,mysql}
py311-django{52}-{sqlite,postgres,mysql}
py310-django{52}-{sqlite,postgres,mysql}
[testenv]
runner = uv-venv-lock-runner
package = wheel
wheel_build_env = .pkg
setenv =
PYTHONDEVMODE = 1
commands =
python \
-W error::ResourceWarning \
-W error::DeprecationWarning \
-W error::PendingDeprecationWarning \
-m pytest {posargs:tests}
dependency_groups =
dev
django52: django52
django60: django60
[testenv:py{310,311,312,313,314}-django{60,52}-sqlite]
setenv =
DATABASE_URL=sqlite://:memory:
PYTEST_ADDOPTS=-m "sqlite or any_db"
[testenv:py{310,311,312,313,314}-django{60,52}-postgres]
setenv =
DATABASE_URL=postgres://pg:pg@localhost:8432/pg
PYTEST_ADDOPTS=-m "postgres or any_db"
[testenv:py{310,311,312,313,314}-django{60,52}-mysql]
setenv =
DATABASE_URL=mysql://root:my-secret-pw@127.0.0.1:8306/rootcause?charset=utf8mb4
PYTEST_ADDOPTS=-m "mysql or any_db"