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

Function test_thread_executor_init

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

Source from the content-addressed store, hash-verified

48 assert isinstance(executor._self, concurrent.futures._base.Executor)
49
50def test_thread_executor_init(default_app):
51 default_app.config['EXECUTOR_TYPE'] = 'thread'
52 executor = Executor(default_app)
53 assert isinstance(executor._self, concurrent.futures.ThreadPoolExecutor)
54 assert isinstance(executor, concurrent.futures.ThreadPoolExecutor)
55
56def test_process_executor_init(default_app):
57 default_app.config['EXECUTOR_TYPE'] = 'process'

Callers

nothing calls this directly

Calls 1

ExecutorClass · 0.90

Tested by

no test coverage detected