Skip to content

Commit

Permalink
Add pytest-custom_exit_code
Browse files Browse the repository at this point in the history
This is to allow us to ignore the exit code from pytest when
no tests were collected, when using the -k option, for example.
  • Loading branch information
stsewd committed Feb 12, 2020
1 parent c37dd7c commit 6fdfc8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions requirements/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

django-dynamic-fixture==2.0.0
pytest==5.2.2
pytest-custom_exit_code==0.3.0
pytest-django==3.6.0
pytest-xdist==1.30.0
pytest-cov==2.8.1
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ passenv = CI TRAVIS TRAVIS_*
deps = -r{toxinidir}/requirements/testing.txt
changedir = {toxinidir}/readthedocs
commands =
pytest --cov-report= --cov-config {toxinidir}/.coveragerc --cov=. {posargs}
pytest --cov-report= --cov-config {toxinidir}/.coveragerc --cov=. --suppress-no-test-exit-code {posargs}

[testenv:docs]
description = build readthedocs documentation
Expand Down

0 comments on commit 6fdfc8b

Please sign in to comment.