Replace nose with coverage + unittest

This commit is contained in:
Andrew Rabert 2022-03-07 17:28:19 -05:00
parent 58c86c9869
commit 7aa980ccf7
3 changed files with 17 additions and 19 deletions

View file

@ -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

View file

@ -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
View file

@ -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