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

Function test_url_generation_without_context_fails

tests/test_appctx.py:27–29  ·  tests/test_appctx.py::test_url_generation_without_context_fails
()

Source from the content-addressed store, hash-verified

25
26
27def test_url_generation_without_context_fails():
28 with pytest.raises(RuntimeError):
29 flask.url_for(class="st">"index")
30
31
32def test_request_context_means_app_context(app):

Callers

nothing calls this directly

Calls 1

url_forMethod · 0.80

Tested by

no test coverage detected