Skip to content

Commit c5f6fff

Browse files
committed
Fix test_grouped_callbacks
1 parent 2b22ff3 commit c5f6fff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/unit/dash/test_grouped_callbacks.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import dash
22
from dash._grouping import make_grouping_by_index, grouping_len, flatten_grouping
33
from dash._utils import create_callback_id
4+
from dash._callback import GLOBAL_CALLBACK_MAP
45
from dash.dependencies import Input, State, Output, ClientsideFunction
56
import mock
67
import json
@@ -50,7 +51,7 @@ def check_output_for_grouping(grouping):
5051
Input("input-a", "prop"),
5152
)(mock_fn)
5253

53-
wrapped_fn = app.callback_map[callback_id]["callback"]
54+
wrapped_fn = GLOBAL_CALLBACK_MAP[callback_id]["callback"]
5455

5556
expected_outputs = [
5657
(dep.component_id, dep.component_property, val)
@@ -108,7 +109,7 @@ def check_callback_inputs_for_grouping(grouping):
108109
inputs,
109110
)(mock_fn)
110111

111-
wrapped_fn = app.callback_map["output-a.prop"]["callback"]
112+
wrapped_fn = GLOBAL_CALLBACK_MAP["output-a.prop"]["callback"]
112113

113114
flat_input_state_values = flatten_grouping(grouping)
114115
flat_input_values = flat_input_state_values[0::2]

0 commit comments

Comments
 (0)