Move pytest options to pyproject.toml

This commit is contained in:
Kevin Tindall
2022-01-31 19:23:48 -06:00
parent 3dc530043e
commit 6c707f702e
2 changed files with 7 additions and 1 deletions

View File

@@ -50,6 +50,13 @@ tox-poetry = "^0.4.1"
[tool.poetry.scripts]
mcstatus = 'mcstatus.scripts.mcstatus:cli'
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--strict-markers --doctest-modules --cov=mcstatus --cov-append --cov-branch --cov-report=term-missing -vvv --no-cov-on-fail"
testpaths = [
"mcstatus/tests",
]
[tool.black]
line-length = 127

View File

@@ -6,7 +6,6 @@ envlist =
[testenv]
setenv =
COVERAGE_FILE=.coverage.{envname}
PYTEST_ADDOPTS=--strict-markers --doctest-modules --cov=mcstatus --cov-append --cov-branch --cov-report=term-missing -v {env:PYTEST_ADDOPTS:}
commands =
pytest {posargs}