MCPcopy Create free account
hub / github.com/dchevell/flask-executor / test_submit_g_context_process

Function test_submit_g_context_process

tests/test_executor.py:154–160  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

152 assert future.result() == test_value
153
154def 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
162def test_submit_request_context(app):
163 test_value = random.randint(1, 101)

Callers

nothing calls this directly

Calls 2

submitMethod · 0.95
ExecutorClass · 0.90

Tested by

no test coverage detected