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

Function test_factory_init

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

Source from the content-addressed store, hash-verified

42 assert getattr(executor, 'shutdown')
43
44def test_factory_init(app):
45 executor = Executor()
46 executor.init_app(app)
47 assert 'executor' in app.extensions
48 assert isinstance(executor._self, concurrent.futures._base.Executor)
49
50def test_thread_executor_init(default_app):
51 default_app.config['EXECUTOR_TYPE'] = 'thread'

Callers

nothing calls this directly

Calls 2

init_appMethod · 0.95
ExecutorClass · 0.90

Tested by

no test coverage detected