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

Function test_submit_request_context

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

Source from the content-addressed store, hash-verified

160 assert future.result() == test_value
161
162def 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
170def test_map_app_context(app):
171 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