|
1 | 1 | [tox] |
2 | 2 | isolated_build = true |
3 | | -envlist = py37-django{2,3}, py3{8,9,10}-django{2,3,4} |
| 3 | +# The *-web environments test the latest versions of Django and Flask with the full test suite. For |
| 4 | +# older version of the web frameworks, just run the tests that are specific to them. |
| 5 | +envlist = py3{8,9,10}-web, py3{7,8,9,10}-flask1-django{2,3} |
4 | 6 |
|
5 | 7 | [testenv] |
| 8 | + |
6 | 9 | deps= |
7 | 10 | poetry>=1.2.0 |
8 | 11 | pytest-django |
9 | | - django2: Django>=2.2,<3.0 |
10 | | - django3: Django>=3.2,<4.0 |
11 | | - django4: Django>=4.0,<5.0 |
| 12 | + web: Django >=4.0, <5.0 |
| 13 | + web: Flask >= 2 |
| 14 | + flask1: -rrequirements-flask1.txt |
| 15 | + django2: Django >=2.2, <3.0 |
| 16 | + django3: Django >=3.2, <4.0 |
| 17 | + |
12 | 18 |
|
13 | 19 | allowlist_externals = env |
14 | 20 | commands = |
15 | 21 | # Turn off recording while installing. It's not necessary, and the warning messages that come |
16 | 22 | # out of the agent confuse poetry. |
17 | 23 | env APPMAP=false poetry install -v |
18 | | - django3: poetry run {posargs:pytest -v} |
| 24 | + web: poetry run {posargs:pytest -vv} |
| 25 | + flask1: poetry run pytest appmap/test/test_flask.py |
19 | 26 | django2: poetry run pytest appmap/test/test_django.py |
20 | | - django4: poetry run pytest appmap/test/test_django.py |
| 27 | + django3: poetry run pytest appmap/test/test_django.py |
0 commit comments