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

Function test_map_request_context

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

Source from the content-addressed store, hash-verified

188 assert r == test_value
189
190def test_map_request_context(app):
191 test_value = random.randint(1, 101)
192 iterator = list(range(5))
193 executor = Executor(app)
194 with app.test_request_context('/'):
195 request.test_value = test_value
196 results = executor.map(request_context_test_value, iterator)
197 for r in results:
198 assert r == test_value
199
200def test_executor_stored_future(default_app):
201 executor = Executor(default_app)

Callers

nothing calls this directly

Calls 2

mapMethod · 0.95
ExecutorClass · 0.90

Tested by

no test coverage detected