Projet

Général

Profil

0001-dj32-test-with-django-3.2.patch

Benjamin Dauvergne, 11 janvier 2023 12:00

Télécharger (1,39 ko)

Voir les différences:

Subject: [PATCH 1/4] dj32: test with django 3.2

 tox.ini | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)
tox.ini
5 5

  
6 6
[tox]
7 7
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/zoo/{env:BRANCH_NAME:}
8
envlist = py3-dj22-coverage
8
envlist = 
9
  py3-dj22
10
  py3-dj32
9 11

  
10 12
[testenv]
11
# django.contrib.auth is not tested it does not work with our templates
12
whitelist_externals =
13
  /bin/mv
14 13
setenv =
15 14
  DJANGO_SETTINGS_MODULE=zoo.settings
16 15
  SETUPTOOLS_USE_DISTUTILS=stdlib
17
  coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=zoo/
18
  fast: FAST=--nomigrations
19
  flakes: FLAKES=--flakes
20
usedevelop =
21
  coverage: True
22
  nocoverage: False
16
  JUNIT={tty::--junitxml=junit-{envname}.xml}
17
  COVERAGE={tty::--cov-report xml --cov-report html --cov=zoo/}
18
usedevelop = true
23 19
deps =
24 20
  dj22: django<2.3
21
  dj32: django>=3.2,<3.3
25 22
  djangorestframework>=3.9.2,<3.10
26 23
  pip>8
27 24
  pytest-flakes
......
43 40
  faker
44 41
  pytest-freezegun
45 42
commands =
46
  py.test {env:FAST:} {env:COVERAGE:} {env:FLAKES:} {posargs:tests}
43
  py.test {posargs:{env:JUNIT:} {env:COVERAGE:} {env:FLAKES:} tests/}
47
-