-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
50 lines (47 loc) · 1.37 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
46
47
48
49
50
[tox]
envlist =
{py37,py38,py39,py310,py311}-django-111
{py38,py39,py310,py311}-django-21
{py37,py38,py39,py310,py311,py312}-django-3
{py38,py39,py310,py311,py312}-django-4
{py310,py311,py312}-django-5
[cleanup]
commands =
find {toxinidir}/tests -type f -name "*.pyc" -delete
find {toxinidir}/tests -type d -name "__pycache__" -delete
find {toxinidir}/tests/tmp_images -type f -name "**.jpg" -delete
find {toxinidir}/custom_css -type f -name "**.css" -delete
find {toxinidir}/templates -type f -name "**.html" -delete
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/fixtures_extractor
DJANGO_SETTINGS_MODULE = tests.testproject.testproject.settings
commands =
pytest
{[cleanup]commands}
allowlist_externals =
find
deps =
django-111: Django>=1.11,<1.12
django-2: Django>=2.1,<3
django-3: Django>=3,<4
django-4: Django>=4,<5
django-5: Django>=5,<6
-r{toxinidir}/requirements/requirements_test.txt
basepython =
py312: python3.12
py311: python3.11
py310: python3.10
py39: python3.9
py38: python3.8
py37: python3.7
[pytest]
python_files = tests.py tests_*.py test_*.py *_tests.py
addopts =
-p no:warnings --cov-report term:skip-covered --cov-report html:skip-covered
log_cli = true
log_cli_level = INFO
log_auto_indent = True
console_output_style = progress
filterwarnings =
ignore::UserWarning