(dict_grouping_size)
| 269 | |
| 270 | |
| 271 | def 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 | |
| 287 | def test_validate_schema_mixed(mixed_grouping_size): |
nothing calls this directly
no test coverage detected
searching dependent graphs…