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
|
|
@ -1,5 +1,14 @@
|
||||||
.. currentmodule:: flask
|
.. currentmodule:: flask
|
||||||
|
|
||||||
|
|
||||||
|
Version 2.1.1
|
||||||
|
-------------
|
||||||
|
|
||||||
|
Unreleased
|
||||||
|
|
||||||
|
- Add specified HTTP method validation.
|
||||||
|
|
||||||
|
|
||||||
Version 2.1.0
|
Version 2.1.0
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2026,3 +2026,11 @@ def test_app_freed_on_zero_refcount():
|
||||||
assert weak() is None
|
assert weak() is None
|
||||||
finally:
|
finally:
|
||||||
gc.enable()
|
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