Use pytest.ini to maintain options

... to simplify defenition in tox.ini .

Change-Id: I97d862d80905b4d183b91b00a016662125c90441
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2026-07-12 14:38:34 +09:00
parent 6c2419ae9f
commit 12ae5dbb41
4 changed files with 10 additions and 4 deletions
-1
View File
@@ -1,4 +1,3 @@
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
+7
View File
@@ -0,0 +1,7 @@
[pytest]
minversion = 6.0
testpaths =
wsme/tests
tests/pecantest
tests/test_flask.py
tests/test_sphinxext.py
+1 -1
View File
@@ -3,6 +3,6 @@ pecan
sphinx>=3.0.0 # BSD
Flask
Flask-RESTful # BSD
pytest # MIT
pytest>=6.0.0 # MIT
pytest-cov # MIT
WebTest # MIT
+2 -2
View File
@@ -6,12 +6,12 @@ envlist = py3,coverage,pep8
deps =
-r test-requirements.txt
commands =
pytest wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py
pytest {posargs}
[testenv:coverage]
commands =
coverage erase
pytest --cov=wsme --cov=wsmeext wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py
pytest --cov=wsme --cov=wsmeext {posargs}
coverage xml
coverage report --show-missing