MCPcopy Create free account
hub / github.com/pallets/flask / test_disallow_string_for_allowed_methods

Function test_disallow_string_for_allowed_methods

tests/test_basic.py:152–154  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

150
151
152def test_disallow_string_for_allowed_methods(app):
153 with pytest.raises(TypeError):
154 app.add_url_rule("/", methods="GET POST", endpoint="test")
155
156
157def test_url_mapping(app, client):

Callers

nothing calls this directly

Calls 1

add_url_ruleMethod · 0.45

Tested by

no test coverage detected