()
| 570 | |
| 571 | |
| 572 | def test_config_defaults_match(): |
| 573 | localns = { |
| 574 | '_GenerateSchema': GenerateSchema, |
| 575 | 'GenerateSchema': GenerateSchema, |
| 576 | 'FieldInfo': FieldInfo, |
| 577 | 'ComputedFieldInfo': ComputedFieldInfo, |
| 578 | } |
| 579 | config_dict_keys = sorted(list(get_type_hints(ConfigDict, localns=localns).keys())) |
| 580 | config_defaults_keys = sorted(list(config_defaults.keys())) |
| 581 | |
| 582 | assert config_dict_keys == config_defaults_keys, 'ConfigDict and config_defaults must have the same keys' |
| 583 | |
| 584 | |
| 585 | def test_config_is_not_inherited_in_model_fields(): |
nothing calls this directly
no test coverage detected