Update tests after Django 3.2.0 release
@@ -12,13 +12,14 @@ envlist =
docs_style
typing
py310-dj32
- py39-dj31
py38-dj30
py37-dj22
py36-dj21
py35-dj20
- py36-no_django
+ py39-dj31
+ py38-no_django
debug_toolbar
+# start by the newest version and end by a relative new version to have a good model.py
# Explicit combinations can be tested even though are not listed in ALL:
# `tox -e py37-dj30,py37-djdev`
# `tox -e docs` # test documentation
@@ -39,7 +40,8 @@ deps =
dj22: Django~=2.2.0
dj30: Django~=3.0.0
dj31: Django~=3.1.0
- dj32: Django~=3.2rc1
+ dj32: Django~=3.2.0
+ # dj32: Django~=3.2rc1
djdev: https://github.com/django/django/archive/main.zip
# local copy of django/origin main
# wget https://github.com/django/django/archive/main.zip -O django-32-dev.zip
@@ -67,19 +69,20 @@ passenv = SLOW_TESTS
[testenv:debug_toolbar]
basepython = python3.6
deps =
- Django~=3.2rc1
+ Django~=3.2.0
django-debug-toolbar
+ coverage
commands = {envpython} manage.py test tests.t_debug_toolbar --settings=tests.t_debug_toolbar.settings
[testenv:py39-dj31-pylint]
setenv = DJANGO_SETTINGS_MODULE=salesforce.testrunner.settings
commands = pylint --reports=no salesforce
-[testenv:py36-no_django]
+[testenv:py38-no_django]
usedevelop=True
whitelist_externals = rm
-deps = requests>=2.4.0
commands =
+ # remove Django because it has been installed by setup.py now if not by tox
rm -rf {envsitepackagesdir}/django
{toxinidir}/tests/tests_no_django.sh
