summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Bungert <[email protected]>2025-01-10 16:15:33 -0700
committerDan Bungert <[email protected]>2025-02-20 16:50:53 -0700
commita9ba65b1a7948c9904fc40c3a8d78900d6b3cb7e (patch)
treebe08bd8218618b1c4c54f2179279f9f247d3b6f3
parent6773d81f36b7608c3ec70a95b7a78fac1d04da76 (diff)
tox: switch to pytest
(cherry picked from commit f9e77d3eef78d4ada60a1da1dda67fce363fc8e2)
-rw-r--r--test-requirements.txt2
-rw-r--r--tox.ini5
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/[email protected]
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