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

Function test_submit

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

Source from the content-addressed store, hash-verified

83 assert default_workers(executor_type, 3, 4) == cpu_count() * WORKERS_MULTIPLIER[executor_type]
84
85def test_submit(app):
86 executor = Executor(app)
87 with app.test_request_context(''):
88 future = executor.submit(fib, 5)
89 assert future.result() == fib(5)
90
91def test_max_workers(app):
92 EXECUTOR_MAX_WORKERS = 10

Callers

nothing calls this directly

Calls 3

submitMethod · 0.95
ExecutorClass · 0.90
fibFunction · 0.70

Tested by

no test coverage detected