mirror of
https://github.com/sprockets/sprockets.mixins.http.git
synced 2024-11-14 11:19:28 +00:00
Replace nose with coverage + unittest
This commit is contained in:
parent
58c86c9869
commit
7aa980ccf7
3 changed files with 17 additions and 19 deletions
|
@ -9,7 +9,6 @@ flake8-import-order==0.18.1
|
|||
flake8-quotes==3.3.1
|
||||
flake8-rst-docstrings==0.2.5
|
||||
flake8-tuple==0.4.1
|
||||
nose==1.3.7
|
||||
u-msgpack-python==2.7.1
|
||||
yapf==0.32.0
|
||||
-r installation.txt
|
||||
|
|
19
setup.cfg
19
setup.cfg
|
@ -2,7 +2,13 @@
|
|||
universal = 1
|
||||
|
||||
[coverage:report]
|
||||
show_missing = 1
|
||||
show_missing = True
|
||||
include =
|
||||
sprockets/*
|
||||
|
||||
[coverage:run]
|
||||
branch = True
|
||||
command_line = -m unittest discover tests --buffer --verbose
|
||||
|
||||
[flake8]
|
||||
application-import-names=sprockets.mixins.http
|
||||
|
@ -10,17 +16,6 @@ exclude=build,env
|
|||
ignore=RST304
|
||||
import-order-style=google
|
||||
|
||||
[nosetests]
|
||||
cover-branches=1
|
||||
cover-erase=1
|
||||
cover-html=1
|
||||
cover-html-dir=build/coverage
|
||||
cover-package=sprockets.mixins.http
|
||||
cover-tests=1
|
||||
with-coverage=1
|
||||
logging-level=DEBUG
|
||||
verbosity=2
|
||||
|
||||
[upload_docs]
|
||||
upload_dir = build/sphinx/html
|
||||
|
||||
|
|
16
tox.ini
16
tox.ini
|
@ -1,16 +1,20 @@
|
|||
[tox]
|
||||
envlist = lint,py37,py38,py39
|
||||
indexserver =
|
||||
default = https://pypi.org/simple
|
||||
default = https://pypi.python.org/simple
|
||||
toxworkdir = build/tox
|
||||
skip_missing_interpreters = True
|
||||
use_develop = True
|
||||
|
||||
[testenv]
|
||||
commands =
|
||||
python -m unittest
|
||||
deps = -rrequires/testing.txt
|
||||
use_develop = True
|
||||
coverage run
|
||||
|
||||
deps =
|
||||
.
|
||||
-rrequires/testing.txt
|
||||
|
||||
[testenv_lint]
|
||||
commands =
|
||||
flake8
|
||||
yapf -dr sprockets tests.py
|
||||
flake8
|
||||
yapf -dr sprockets tests.py
|
||||
|
|
Loading…
Reference in a new issue