From 2220b0b4babcc274da0bad57be9385f3dd30053c Mon Sep 17 00:00:00 2001 From: IML Date: Sun, 6 Jun 2021 01:41:39 +0900 Subject: [PATCH] update api.rst --- docs/api.rst | 3 +++ tests/test_basic.py | 8 -------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index e6862878..8e9db458 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -747,6 +747,9 @@ Full example:: .. versionadded:: 0.8 The `provide_automatic_options` functionality was added. +.. versionadded:: 2.1.1 + Add specified HTTP method validation. + Command Line Interface ---------------------- diff --git a/tests/test_basic.py b/tests/test_basic.py index eb62a491..2cb96794 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -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" \ No newline at end of file