(app)
| 42 | assert getattr(executor, 'shutdown') |
| 43 | |
| 44 | def 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 | |
| 50 | def test_thread_executor_init(default_app): |
| 51 | default_app.config['EXECUTOR_TYPE'] = 'thread' |