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

Function test_flatten_odd_value

tests/unit/library/test_grouping.py:67–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66
67def test_flatten_odd_value():
68 # Anything other than tuple and dict should be treated as a
69 # scalar and passed through
70 expected = [0, sum, Input("foo", "bar")]
71 vals_collection = (0, (sum, Input("foo", "bar")))
72 result = flatten_grouping(vals_collection)
73 assert expected == result
74 assert len(result) == grouping_len(vals_collection)
75
76
77# Test make_grouping_by_position

Callers

nothing calls this directly

Calls 3

InputClass · 0.90
flatten_groupingFunction · 0.90
grouping_lenFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…