cleaning up
This commit is contained in:
parent
eca98a54eb
commit
d55e453bd5
|
@ -156,8 +156,6 @@ class MethodNotSupported(SanicException):
|
||||||
super().__init__(message)
|
super().__init__(message)
|
||||||
self.headers = dict()
|
self.headers = dict()
|
||||||
self.headers["Allow"] = ", ".join(allowed_methods)
|
self.headers["Allow"] = ", ".join(allowed_methods)
|
||||||
# if method in ['HEAD', 'PATCH', 'PUT', 'DELETE']:
|
|
||||||
# self.headers['Content-Length'] = 0
|
|
||||||
|
|
||||||
|
|
||||||
@add_status_code(500)
|
@add_status_code(500)
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -18,7 +18,7 @@ deps =
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
gunicorn
|
gunicorn
|
||||||
commands =
|
commands =
|
||||||
pytest tests --cov sanic --cov-report= {posargs}
|
pytest tests -n 4 --cov sanic --cov-report= {posargs}
|
||||||
- coverage combine --append
|
- coverage combine --append
|
||||||
coverage report -m
|
coverage report -m
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user