(app)
| 83 | assert default_workers(executor_type, 3, 4) == cpu_count() * WORKERS_MULTIPLIER[executor_type] |
| 84 | |
| 85 | def test_submit(app): |
| 86 | executor = Executor(app) |
| 87 | with app.test_request_context(''): |
| 88 | future = executor.submit(fib, 5) |
| 89 | assert future.result() == fib(5) |
| 90 | |
| 91 | def test_max_workers(app): |
| 92 | EXECUTOR_MAX_WORKERS = 10 |