MCPcopy Create free account
hub / github.com/dchevell/flask-executor / test_default_done_callback

Function test_default_done_callback

tests/test_executor.py:245–253  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

243 assert False
244
245def 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
255def test_propagate_exception_callback(app, caplog):
256 caplog.set_level(logging.ERROR)

Callers

nothing calls this directly

Calls 3

submitMethod · 0.95
ExecutorClass · 0.90

Tested by

no test coverage detected