1
0
Fork 0

Move 'pytest' config in 'setup.cfg', add 'pytest' tox environment

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
merge-requests/323/head
Vasilis Tsiligiannis 2019-01-07 13:23:02 +02:00
parent ef76c1eb5a
commit 479e3a2267
3 changed files with 13 additions and 4 deletions

View File

@ -1,4 +0,0 @@
[pytest]
addopts = -v --cov --cov-report term-missing
python_files = tests.py
DJANGO_SETTINGS_MODULE=db.settings

View File

@ -81,6 +81,11 @@ max-line-length = 99
ignore = F403,W504
exclude = db/_version.py,db/base/migrations,docs
[tool:pytest]
addopts = -v --cov --cov-report=term-missing
python_files = tests.py
DJANGO_SETTINGS_MODULE = db.settings
# See the docstring in versioneer.py for instructions. Note that you must
# re-run 'versioneer.py setup' after changing this section, and commit the
# resulting files.

View File

@ -1,6 +1,7 @@
[tox]
envlist =
flake8
pytest
py27
py36
@ -11,3 +12,10 @@ skip_install = True
commands = flake8 \
setup.py \
db
[testenv:pytest]
deps =
pytest
usedevelop = True
extras = dev
commands = pytest