(app)
| 243 | assert False |
| 244 | |
| 245 | def test_default_done_callback(app): |
| 246 | executor = Executor(app) |
| 247 | def callback(future): |
| 248 | setattr(future, 'test', 'test') |
| 249 | executor.add_default_done_callback(callback) |
| 250 | with app.test_request_context('/'): |
| 251 | future = executor.submit(fib, 5) |
| 252 | concurrent.futures.wait([future]) |
| 253 | assert hasattr(future, 'test') |
| 254 | |
| 255 | def test_propagate_exception_callback(app, caplog): |
| 256 | caplog.set_level(logging.ERROR) |
nothing calls this directly
no test coverage detected