(app)
| 152 | assert future.result() == test_value |
| 153 | |
| 154 | def test_submit_g_context_process(app): |
| 155 | test_value = random.randint(1, 101) |
| 156 | executor = Executor(app) |
| 157 | with app.test_request_context(''): |
| 158 | g.test_value = test_value |
| 159 | future = executor.submit(g_context_test_value) |
| 160 | assert future.result() == test_value |
| 161 | |
| 162 | def test_submit_request_context(app): |
| 163 | test_value = random.randint(1, 101) |