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

Function test_max_workers

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

Source from the content-addressed store, hash-verified

89 assert future.result() == fib(5)
90
91def test_max_workers(app):
92 EXECUTOR_MAX_WORKERS = 10
93 app.config['EXECUTOR_MAX_WORKERS'] = EXECUTOR_MAX_WORKERS
94 executor = Executor(app)
95 assert executor._max_workers == EXECUTOR_MAX_WORKERS
96 assert executor._self._max_workers == EXECUTOR_MAX_WORKERS
97
98def test_thread_decorator_submit(default_app):
99 default_app.config['EXECUTOR_TYPE'] = 'thread'

Callers

nothing calls this directly

Calls 1

ExecutorClass · 0.90

Tested by

no test coverage detected