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