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