add test case
- add test case - update CHANGES.rst
This commit is contained in:
parent
5324bac0d2
commit
b505e2a7bd
2 changed files with 17 additions and 0 deletions
|
|
@ -2026,3 +2026,11 @@ def test_app_freed_on_zero_refcount():
|
|||
assert weak() is None
|
||||
finally:
|
||||
gc.enable()
|
||||
|
||||
|
||||
def test_validate_http_method_route(app, client):
|
||||
|
||||
with pytest.raises(TypeError):
|
||||
@app.route("/", methods=["BAD_METHOD"])
|
||||
def bad_method_func():
|
||||
return "Hello World"
|
||||
Loading…
Add table
Add a link
Reference in a new issue