(app)
| 227 | assert custom_executor._max_workers == CUSTOM_EXECUTOR_MAX_WORKERS |
| 228 | |
| 229 | def test_named_executor_submit(app): |
| 230 | name = 'custom' |
| 231 | custom_executor = Executor(app, name=name) |
| 232 | with app.test_request_context(''): |
| 233 | future = custom_executor.submit(fib, 5) |
| 234 | assert future.result() == fib(5) |
| 235 | |
| 236 | def test_named_executor_name(default_app): |
| 237 | name = 'invalid name' |