From c5f6fffc12d5517b59717e7ed87d651daa0fb26d Mon Sep 17 00:00:00 2001 From: philippe Date: Mon, 13 Jun 2022 19:34:38 -0400 Subject: [PATCH] Fix test_grouped_callbacks --- tests/unit/dash/test_grouped_callbacks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/dash/test_grouped_callbacks.py b/tests/unit/dash/test_grouped_callbacks.py index cdbe9dc124..5578f85b2e 100644 --- a/tests/unit/dash/test_grouped_callbacks.py +++ b/tests/unit/dash/test_grouped_callbacks.py @@ -1,6 +1,7 @@ import dash from dash._grouping import make_grouping_by_index, grouping_len, flatten_grouping from dash._utils import create_callback_id +from dash._callback import GLOBAL_CALLBACK_MAP from dash.dependencies import Input, State, Output, ClientsideFunction import mock import json @@ -50,7 +51,7 @@ def check_output_for_grouping(grouping): Input("input-a", "prop"), )(mock_fn) - wrapped_fn = app.callback_map[callback_id]["callback"] + wrapped_fn = GLOBAL_CALLBACK_MAP[callback_id]["callback"] expected_outputs = [ (dep.component_id, dep.component_property, val) @@ -108,7 +109,7 @@ def check_callback_inputs_for_grouping(grouping): inputs, )(mock_fn) - wrapped_fn = app.callback_map["output-a.prop"]["callback"] + wrapped_fn = GLOBAL_CALLBACK_MAP["output-a.prop"]["callback"] flat_input_state_values = flatten_grouping(grouping) flat_input_values = flat_input_state_values[0::2]