Skip to content

Commit

Permalink
Fix test_grouped_callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Jun 13, 2022
1 parent 2b22ff3 commit c5f6fff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/dash/test_grouped_callbacks.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit c5f6fff

Please sign in to comment.