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

Function test_request_less_rendering

tests/test_templating.py:42–50  ·  view source on GitHub ↗
(app, app_ctx)

Source from the content-addressed store, hash-verified

40
41
42def test_request_less_rendering(app, app_ctx):
43 app.config["WORLD_NAME"] = "Special World"
44
45 @app.context_processor
46 def context_processor():
47 return dict(foo=42)
48
49 rv = flask.render_template_string("Hello {{ config.WORLD_NAME }} {{ foo }}")
50 assert rv == "Hello Special World 42"
51
52
53def test_standard_context(app, client):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected