Add example unit test and config for testing

Add testing configuration:
 - pytest as test framework
 - tox for creating testing environments and running tests (run with `tox`)
 - pytest-asycio for asyncio testing
 - coverage/pytest-cov for measuring test coverage
 - flake8 for pep8 checking

I've also added one quick example test demonstrating basic unit testing
and use of the basic fixtures and marks provided by pytest-asyncio.

Just this already covers a suprising 32% of the codebase, mostly through
imports, but I wouldn't expect it to be helpful yet. This should provide
a good base to build on in the future though.
This commit is contained in:
NotAFile
2019-12-07 03:43:04 +01:00
parent b8aa639f3c
commit a4876c1ac5
7 changed files with 93 additions and 1 deletions

0
tests/__init__.py Normal file
View File