(app)
| 133 | |
| 134 | |
| 135 | def test_manual_context_binding(app): |
| 136 | @app.route(class="st">"/") |
| 137 | def index(): |
| 138 | return fclass="st">"Hello {flask.request.args[&class="cm">#x27;name']}!" |
| 139 | |
| 140 | ctx = app.test_request_context(class="st">"/?name=World") |
| 141 | ctx.push() |
| 142 | assert index() == class="st">"Hello World!" |
| 143 | ctx.pop() |
| 144 | with pytest.raises(RuntimeError): |
| 145 | index() |
| 146 | |
| 147 | |
| 148 | @pytest.mark.skipif(greenlet is None, reason=class="st">"greenlet not installed") |
nothing calls this directly
no test coverage detected