From a9ba65b1a7948c9904fc40c3a8d78900d6b3cb7e Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Fri, 10 Jan 2025 16:15:33 -0700 Subject: tox: switch to pytest (cherry picked from commit f9e77d3eef78d4ada60a1da1dda67fce363fc8e2) --- test-requirements.txt | 2 +- tox.ini | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 5ff8f3eb..fd238677 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,10 +1,10 @@ coverage flake8 jsonschema -nose parameterized pip pyflakes +pytest virtualenv wheel git+https://salsa.debian.org/apt-team/python-apt@2.4.y diff --git a/tox.ini b/tox.ini index 61357bd4..b1bcb022 100644 --- a/tox.ini +++ b/tox.ini @@ -19,9 +19,8 @@ setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt # noproxy needed for several of the curtin jenkins jobs -commands = {envpython} {toxinidir}/tools/noproxy {envpython} -m nose \ - {posargs:--with-coverage --cover-erase --cover-branches \ - --cover-package=curtin --cover-inclusive tests/unittests} +commands = {envpython} {toxinidir}/tools/noproxy {envpython} \ + -m pytest tests/unittests [testenv:py3] basepython = python3 -- cgit v1.2.3