(app)
| 121 | |
| 122 | |
| 123 | def test_context_test(app): |
| 124 | assert not flask.request |
| 125 | assert not flask.has_request_context() |
| 126 | ctx = app.test_request_context() |
| 127 | ctx.push() |
| 128 | try: |
| 129 | assert flask.request |
| 130 | assert flask.has_request_context() |
| 131 | finally: |
| 132 | ctx.pop() |
| 133 | |
| 134 | |
| 135 | def test_manual_context_binding(app): |
nothing calls this directly
no test coverage detected