From a5cc9862e8f38b7a6dc9ec51cb95788342c24b75 Mon Sep 17 00:00:00 2001 From: Leonardo Cavallucci Date: Mon, 13 Jan 2025 10:24:18 +0100 Subject: [PATCH] Use pytest for tests --- changes/190.bugfix | 1 + requirements-test.txt | 2 ++ tox.ini | 3 +-- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changes/190.bugfix diff --git a/changes/190.bugfix b/changes/190.bugfix new file mode 100644 index 0000000..b74e0ff --- /dev/null +++ b/changes/190.bugfix @@ -0,0 +1 @@ +Use pytest for tests diff --git a/requirements-test.txt b/requirements-test.txt index 0c45d94..20abde2 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,3 +1,5 @@ -r requirements.txt coverage coveralls>=2.0 +pytest-runner +pytest diff --git a/tox.ini b/tox.ini index cc23d26..4c2320c 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,7 @@ envlist = py{311,310,39} [testenv] -commands = {env:COMMAND:python} setup.py test {posargs} +commands = {env:COMMAND:python} -m pytest {posargs} deps = -r{toxinidir}/requirements-test.txt passenv = @@ -105,4 +105,3 @@ ignore-bad-ideas = [pytest] python_files = test_*.py traceback = short -addopts = --reuse-db