(app)
| 160 | assert future.result() == test_value |
| 161 | |
| 162 | def test_submit_request_context(app): |
| 163 | test_value = random.randint(1, 101) |
| 164 | executor = Executor(app) |
| 165 | with app.test_request_context(''): |
| 166 | request.test_value = test_value |
| 167 | future = executor.submit(request_context_test_value) |
| 168 | assert future.result() == test_value |
| 169 | |
| 170 | def test_map_app_context(app): |
| 171 | test_value = random.randint(1, 101) |