mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-03-16 22:40:25 +00:00
Ensure tests are actually run
pytest by default only discovers tests in files named test_*.py, so none of the tests were actually being executed. Set the appropriate pytest option to discover the tests so they are automatically run.
This commit is contained in:
parent
71488c49c4
commit
e2b4470c5b
1 changed files with 4 additions and 3 deletions
7
tox.ini
7
tox.ini
|
|
@ -31,10 +31,10 @@ deps =
|
|||
commands =
|
||||
pip install -e .
|
||||
pip install -e demo
|
||||
# doctests
|
||||
# doctests and unit tests
|
||||
pytest --cov=django_downloadview --cov=demoproject {posargs}
|
||||
# all other test cases
|
||||
coverage run --append {envbindir}/demo test {posargs: tests demoproject}
|
||||
# demo project integration tests
|
||||
coverage run --append {envbindir}/demo test {posargs: demoproject}
|
||||
coverage xml
|
||||
pip freeze
|
||||
ignore_outcome =
|
||||
|
|
@ -76,3 +76,4 @@ source = django_downloadview,demo
|
|||
[pytest]
|
||||
DJANGO_SETTINGS_MODULE = demoproject.settings
|
||||
addopts = --doctest-modules --ignore=docs/
|
||||
python_files = tests/*.py
|
||||
|
|
|
|||
Loading…
Reference in a new issue