update api.rst
This commit is contained in:
parent
b505e2a7bd
commit
2220b0b4ba
2 changed files with 3 additions and 8 deletions
|
|
@ -2026,11 +2026,3 @@ 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