Closed benoitbryon closed 9 years ago
The reason is:
unittest.TestResult.addSkip()
requires test
and reason
arguments: https://docs.python.org/2.7/library/unittest.html#unittest.TestResult.addSkiphospital.wsgi.TestResult.addSkip()
only has test
argument (reason
is missing): https://github.com/python-hospital/hospital/blob/0.8.1/hospital/wsgi.py#L45=> hospital.wsgi.TestResult.addSkip()
must require both test
and reason
arguments.
If healthchecks use unittest's "skip" feature and healthchecks are served using WSGI, then we get a Python exception like
TypeError: addSkip() takes exactly 2 arguments (3 given)
.