Get tests and docs passing

This commit is contained in:
Luke Murphy 2020-02-29 23:52:18 +00:00
parent 14a0a7cb03
commit 9e1b258ecc
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 8 additions and 6 deletions

View File

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

View File

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