Get tests and docs passing
This commit is contained in:
parent
14a0a7cb03
commit
9e1b258ecc
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
|
|
||||||
def test_version_fails_gracefully(mocker):
|
def test_version_fails_gracefully(mocker):
|
||||||
target = 'pkg_resources.get_distribution'
|
target = "pkg_resources.get_distribution"
|
||||||
with mocker.patch(target, side_effect=Exception()):
|
mocker.patch(target, side_effect=Exception())
|
||||||
from calibrestekje.__init__ import __version__
|
from calibrestekje.__init__ import __version__
|
||||||
|
|
||||||
assert __version__ == 'unknown'
|
assert __version__ == "unknown"
|
||||||
|
|
6
tox.ini
6
tox.ini
|
@ -34,7 +34,7 @@ commands = isort {posargs:-rc -c} -sp setup.cfg calibrestekje/ test/
|
||||||
[testenv:format]
|
[testenv:format]
|
||||||
description = format the source
|
description = format the source
|
||||||
skipdist = True
|
skipdist = True
|
||||||
basepython = python3.6
|
basepython = python3.8
|
||||||
deps = black
|
deps = black
|
||||||
commands = black {posargs:--check} calibrestekje/ test/
|
commands = black {posargs:--check} calibrestekje/ test/
|
||||||
|
|
||||||
|
@ -50,7 +50,9 @@ commands = mypy calibrestekje/ test/
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
description = build the documentation
|
description = build the documentation
|
||||||
skipdist = True
|
skipdist = True
|
||||||
deps = sphinx
|
deps =
|
||||||
|
sphinx
|
||||||
|
sphinx_rtd_theme
|
||||||
commands = python -m setup build_sphinx
|
commands = python -m setup build_sphinx
|
||||||
|
|
||||||
[testenv:docs-livereload]
|
[testenv:docs-livereload]
|
||||||
|
|
Loading…
Reference in New Issue