MCPcopy Index your code
hub / github.com/plotly/dash / test_flatten_dict_key_order

Function test_flatten_dict_key_order

tests/unit/library/test_grouping.py:48–56  ·  view source on GitHub ↗
(dict_grouping_size)

Source from the content-addressed store, hash-verified

46
47
48def test_flatten_dict_key_order(dict_grouping_size):
49 grouping, size = dict_grouping_size
50 expected = list(range(size))
51
52 # Reverse key order of value dict to make sure order is preserved
53 rev_grouping = {k: grouping[k] for k in reversed(list(grouping.keys()))}
54 result = flatten_grouping(rev_grouping, grouping)
55 assert expected == result
56 assert len(result) == grouping_len(grouping)
57
58
59def test_flatten_mixed(mixed_grouping_size):

Callers

nothing calls this directly

Calls 3

flatten_groupingFunction · 0.90
grouping_lenFunction · 0.90
keysMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…