Adding unittests (#300)

* Create a custom class to handle aborting 204 properly.  If this isn't
covered the server will send a 500 due to a python exception

* Moved py.test configuration under tool:pytest, this was causing a
warning.  This is new to 3.0.1 which is now the pinned version

* Unittest for puppetboard.utils
This commit is contained in:
Mike Terzo
2016-09-11 21:01:13 -04:00
committed by Corey Hammerton
parent dffd42af1d
commit 3fbd182453
4 changed files with 179 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ cover-package = puppetboard
[flake8]
exclude=venv
[pytest]
[tool:pytest]
addopts = --cov=puppetboard --cov-report=term-missing
norecursedirs = docs .tox venv
pep8ignore = E402