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

Function test_pre_init_executor

tests/test_executor.py:280–289  ·  view source on GitHub ↗
(default_app)

Source from the content-addressed store, hash-verified

278 assert executor._shutdown is True
279
280def test_pre_init_executor(default_app):
281 executor = Executor()
282 @executor.job
283 def decorated(n):
284 return fib(n)
285 assert executor
286 executor.init_app(default_app)
287 with default_app.test_request_context(''):
288 future = decorated.submit(5)
289 assert future.result() == fib(5)

Callers

nothing calls this directly

Calls 4

init_appMethod · 0.95
ExecutorClass · 0.90
fibFunction · 0.70
submitMethod · 0.45

Tested by

no test coverage detected