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

Function test_validate_schema_dict

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

Source from the content-addressed store, hash-verified

269
270
271def test_validate_schema_dict(dict_grouping_size):
272 grouping, size = dict_grouping_size
273 schema = make_schema_with_nones(grouping)
274 validate_grouping(grouping, schema)
275
276 # check validation failures
277 with pytest.raises(SchemaTypeValidationError):
278 validate_grouping(None, schema)
279
280 with pytest.raises(SchemaTypeValidationError):
281 validate_grouping((None,), schema)
282
283 with pytest.raises(SchemaKeysValidationError):
284 validate_grouping({"A": 0, "bogus": 2}, schema)
285
286
287def test_validate_schema_mixed(mixed_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…