Skip to content

Commit

Permalink
- specify tests path for pytest so the tests run locally
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Oct 8, 2024
1 parent 8eb19b6 commit de42090
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ testenv-setenv = [
]
testenv-commands = [
"python -V",
"pytest --cov=src --cov=tests --cov-report= {posargs}",
"pytest --cov=src --cov=tests --cov-report= tests {posargs}",
]
testenv-additional = [
"",
Expand All @@ -49,13 +49,13 @@ testenv-additional = [
" coverage report -m --fail-under=100",
"depends = py38,py39,py310,py311,py311-datetime,py312,py313,coverage",
]
coverage-command = "pytest --cov=src --cov=tests --cov-report= {posargs}"
coverage-command = "pytest --cov=src --cov=tests --cov-report= tests {posargs}"
coverage-setenv = [
"COVERAGE_FILE=.coverage",
]

[coverage]
fail-under = 97
fail-under = 97.9

[isort]
additional-sources = "{toxinidir}/tests"
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ setenv =
COVERAGE_FILE=.coverage.{envname}
commands =
python -V
pytest --cov=src --cov=tests --cov-report= {posargs}
pytest --cov=src --cov=tests --cov-report= tests {posargs}
sphinx-build -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest
extras =
test
Expand Down Expand Up @@ -109,7 +109,7 @@ setenv =
COVERAGE_FILE=.coverage
commands =
mkdir -p {toxinidir}/parts/htmlcov
pytest --cov=src --cov=tests --cov-report= {posargs}
pytest --cov=src --cov=tests --cov-report= tests {posargs}
coverage run -a -m sphinx -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest
coverage html
coverage report

0 comments on commit de42090

Please sign in to comment.