(func, app)
| 32 | |
| 33 | |
| 34 | def with_app_context_factory(func, app): |
| 35 | @functools.wraps(func) |
| 36 | def wrap(*args, **kwargs): |
| 37 | app_context.set(app) |
| 38 | ctx = copy_context() |
| 39 | return ctx.run(func, *args, **kwargs) |
| 40 | |
| 41 | return wrap |
| 42 | |
| 43 | |
| 44 | def get_app(): |
no outgoing calls
no test coverage detected
searching dependent graphs…