(app, caplog)
| 253 | assert hasattr(future, 'test') |
| 254 | |
| 255 | def test_propagate_exception_callback(app, caplog): |
| 256 | caplog.set_level(logging.ERROR) |
| 257 | app.config['EXECUTOR_PROPAGATE_EXCEPTIONS'] = True |
| 258 | executor = Executor(app) |
| 259 | with pytest.raises(NameError): |
| 260 | with app.test_request_context('/'): |
| 261 | future = executor.submit(fail) |
| 262 | assert propagate_exceptions_callback in future._done_callbacks |
| 263 | concurrent.futures.wait([future]) |
| 264 | propagate_exceptions_callback(future) |
| 265 | |
| 266 | def test_coerce_config_types(default_app): |
| 267 | default_app.config['EXECUTOR_MAX_WORKERS'] = '5' |
nothing calls this directly
no test coverage detected