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

Function test_named_executor_submit

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

Source from the content-addressed store, hash-verified

227 assert custom_executor._max_workers == CUSTOM_EXECUTOR_MAX_WORKERS
228
229def test_named_executor_submit(app):
230 name = 'custom'
231 custom_executor = Executor(app, name=name)
232 with app.test_request_context(''):
233 future = custom_executor.submit(fib, 5)
234 assert future.result() == fib(5)
235
236def test_named_executor_name(default_app):
237 name = 'invalid name'

Callers

nothing calls this directly

Calls 3

submitMethod · 0.95
ExecutorClass · 0.90
fibFunction · 0.70

Tested by

no test coverage detected