From 106f97f76a782944d6748f68086bda351ed850b0 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 11 Jan 2023 11:30:00 +0100 Subject: [PATCH 1/4] dj32: test with django 3.2 --- tox.ini | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/tox.ini b/tox.ini index a65fd48..8361574 100644 --- a/tox.ini +++ b/tox.ini @@ -5,23 +5,20 @@ [tox] toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/zoo/{env:BRANCH_NAME:} -envlist = py3-dj22-coverage +envlist = + py3-dj22 + py3-dj32 [testenv] -# django.contrib.auth is not tested it does not work with our templates -whitelist_externals = - /bin/mv setenv = DJANGO_SETTINGS_MODULE=zoo.settings SETUPTOOLS_USE_DISTUTILS=stdlib - coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=zoo/ - fast: FAST=--nomigrations - flakes: FLAKES=--flakes -usedevelop = - coverage: True - nocoverage: False + JUNIT={tty::--junitxml=junit-{envname}.xml} + COVERAGE={tty::--cov-report xml --cov-report html --cov=zoo/} +usedevelop = true deps = dj22: django<2.3 + dj32: django>=3.2,<3.3 djangorestframework>=3.9.2,<3.10 pip>8 pytest-flakes @@ -43,4 +40,4 @@ deps = faker pytest-freezegun commands = - py.test {env:FAST:} {env:COVERAGE:} {env:FLAKES:} {posargs:tests} + py.test {posargs:{env:JUNIT:} {env:COVERAGE:} {env:FLAKES:} tests/} -- 2.37.2