cleaning up

This commit is contained in:
Yun Xu 2018-02-27 20:26:49 -08:00
parent eca98a54eb
commit d55e453bd5
2 changed files with 1 additions and 3 deletions

View File

@ -156,8 +156,6 @@ class MethodNotSupported(SanicException):
super().__init__(message)
self.headers = dict()
self.headers["Allow"] = ", ".join(allowed_methods)
# if method in ['HEAD', 'PATCH', 'PUT', 'DELETE']:
# self.headers['Content-Length'] = 0
@add_status_code(500)

View File

@ -18,7 +18,7 @@ deps =
beautifulsoup4
gunicorn
commands =
pytest tests --cov sanic --cov-report= {posargs}
pytest tests -n 4 --cov sanic --cov-report= {posargs}
- coverage combine --append
coverage report -m