Repository: nephila/python-taiga

Issue:
Impossible to run tests
## Description

Running `python setup.py test` (or simply `tox`) lead to `error: invalid command 'test'`

Discussion:
coveralls: 
[![Coverage Status](https://coveralls.io/builds/71699225/badge)](https://coveralls.io/builds/71699225)

coverage: 97.961% (-0.003%) from 97.964%
when pulling **a5cc9862e8f38b7a6dc9ec51cb95788342c24b75 on protoroto:bugfix/issue-190-fix-tests-runner**
into **f356287e021d3c142848e017ab2f715420a9d839 on nephila:master**.


Patch:
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,1 @@
+Use pytest for tests
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


Test patch:
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