(app)
| 155 | |
| 156 | |
| 157 | def test_custom_app_ctx_globals_class(app): |
| 158 | class CustomRequestGlobals: |
| 159 | def __init__(self): |
| 160 | self.spam = "eggs" |
| 161 | |
| 162 | app.app_ctx_globals_class = CustomRequestGlobals |
| 163 | with app.app_context(): |
| 164 | assert flask.render_template_string("{{ g.spam }}") == "eggs" |
| 165 | |
| 166 | |
| 167 | def test_context_refcounts(app, client): |
nothing calls this directly
no test coverage detected
searching dependent graphs…