(type_: Any)
| 25 | |
| 26 | |
| 27 | def init_schema_and_cleaned_schema(type_: Any) -> tuple[CoreSchema, CoreSchema]: |
| 28 | gen = GenerateSchema(ConfigWrapper(None)) |
| 29 | schema = gen.generate_schema(type_) |
| 30 | cleaned_schema = deepcopy(schema) |
| 31 | cleaned_schema = gen.clean_schema(cleaned_schema) |
| 32 | assert TypeAdapter(type_).pydantic_complete # Just to make sure it works and test setup is sane |
| 33 | return schema, cleaned_schema |
| 34 | |
| 35 | |
| 36 | def test_simple_core_schema_with_no_references() -> None: |
no test coverage detected