()
| 157 | |
| 158 | |
| 159 | def test_json_encoder_error_with_pydanticv1(): |
| 160 | with warnings.catch_warnings(): |
| 161 | warnings.simplefilter("ignore", UserWarning) |
| 162 | from pydantic import v1 |
| 163 | |
| 164 | class ModelV1(v1.BaseModel): |
| 165 | name: str |
| 166 | |
| 167 | data = ModelV1(name="test") |
| 168 | with pytest.raises(PydanticV1NotSupportedError): |
| 169 | jsonable_encoder(data) |
| 170 | |
| 171 | |
| 172 | def test_encode_model_with_config(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…