From 33e997d55bba8cd93fe6b2b8ee84ac4e99f9a08e Mon Sep 17 00:00:00 2001 From: Stefano Apostolico Date: Sat, 28 Sep 2024 22:19:31 +0200 Subject: [PATCH] updats tox --- pyproject.toml | 2 +- tox.ini | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bbd7e1d..83796eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ dev = [ "mock", "pre-commit", "psycopg2-binary", - "pytest", + "pytest>=8.3.3", "pytest-cov", "pytest-django", "pytest-echo", diff --git a/tox.ini b/tox.ini index acbbddd..386a727 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = d{42,51}-py{311,312}-{pg,sqlite,mysql},docs,lint,package - +skip_missing_interpreters = true [pytest] pythonpath=./tests/demoapp/ src @@ -8,7 +8,7 @@ django_find_project = false DJANGO_SETTINGS_MODULE=demo.settings norecursedirs = .tox docs ./demoapp/ python_files=tests/test_*.py -allowlist_externals=pytest +allowlist_externals=mkdir addopts = -q -p no:warnings @@ -59,7 +59,7 @@ deps = commands = pdm install --dev - {posargs:pytest tests -x -rw --create-db} + {posargs:pdm run pytest tests -vv -rw --create-db} [testenv:mysql] commands = @@ -81,7 +81,10 @@ commands = [testenv:docs] basepython = python312 +allowlist_externals= + mkdir deps = + pdm -rdocs/requirements.pip commands = mkdir -p ~build/docs