Build a minimal callback context containing ``args``. Parameters ---------- args_value : Any The value to store under the ``args`` key. Returns ------- AttributeDict A context with the keys ``_setup_background_callback`` expects to find and pop.
(args_value)
| 40 | |
| 41 | |
| 42 | def _make_context(args_value): |
| 43 | """Build a minimal callback context containing ``args``. |
| 44 | |
| 45 | Parameters |
| 46 | ---------- |
| 47 | args_value : Any |
| 48 | The value to store under the ``args`` key. |
| 49 | |
| 50 | Returns |
| 51 | ------- |
| 52 | AttributeDict |
| 53 | A context with the keys ``_setup_background_callback`` expects to find |
| 54 | and pop. |
| 55 | """ |
| 56 | return AttributeDict( |
| 57 | args=args_value, |
| 58 | background_callback_manager=object(), |
| 59 | dash_response=object(), |
| 60 | ) |
| 61 | |
| 62 | |
| 63 | class _CapturingManager: |
no test coverage detected
searching dependent graphs…