(app, app_ctx)
| 40 | |
| 41 | |
| 42 | def 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 | |
| 53 | def test_standard_context(app, client): |
nothing calls this directly
no outgoing calls
no test coverage detected