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

Function test_validate_schema_grouping_list

tests/unit/library/test_grouping.py:255–268  ·  view source on GitHub ↗
(list_grouping_size)

Source from the content-addressed store, hash-verified

253
254
255def test_validate_schema_grouping_list(list_grouping_size):
256 grouping, size = list_grouping_size
257 schema = make_schema_with_nones(grouping)
258 validate_grouping(grouping, schema)
259
260 # check validation failures
261 with pytest.raises(SchemaTypeValidationError):
262 validate_grouping(None, schema)
263
264 with pytest.raises(SchemaLengthValidationError):
265 validate_grouping((None,) * (size + 1), schema)
266
267 with pytest.raises(SchemaTypeValidationError):
268 validate_grouping({"a": 0}, schema)
269
270
271def test_validate_schema_dict(dict_grouping_size):

Callers

nothing calls this directly

Calls 2

validate_groupingFunction · 0.90
make_schema_with_nonesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…