MCPcopy
hub / github.com/pallets/flask / test_disallow_string_for_allowed_methods

Function test_disallow_string_for_allowed_methods

tests/test_basic.py:154–156  ·  tests/test_basic.py::test_disallow_string_for_allowed_methods
(app)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

add_url_ruleMethod · 0.45

Tested by

no test coverage detected