Include doctests in the test suite

- use xdoctest to validate all code snippets in docstrings
- add xdoctest to the nox session "test"
This commit is contained in:
Alexander Hess 2020-08-05 00:02:40 +02:00
commit 126dcf7c39
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
4 changed files with 58 additions and 7 deletions

View file

@ -53,6 +53,7 @@ wemake-python-styleguide = "^0.14.1" # flake8 plug-in
packaging = "^20.4" # used to test the packaged version
pytest = "^6.0.1"
pytest-cov = "^2.10.0"
xdoctest = { version="^0.13.0", extras=["optional"] }
[tool.poetry.scripts]
umd = "urban_meal_delivery.console:main"