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

Function test_url_generation_requires_server_name

tests/test_appctx.py:21–24  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

19
20
21def test_url_generation_requires_server_name(app):
22 with app.app_context():
23 with pytest.raises(RuntimeError):
24 flask.url_for("index")
25
26
27def test_url_generation_without_context_fails():

Callers

nothing calls this directly

Calls 2

app_contextMethod · 0.80
url_forMethod · 0.80

Tested by

no test coverage detected