()
| 358 | |
| 359 | |
| 360 | def test_model_property_attribute_error(): |
| 361 | class Model(BaseModel): |
| 362 | @property |
| 363 | def a_property(self): |
| 364 | raise AttributeError('Internal Error') |
| 365 | |
| 366 | with pytest.raises(AttributeError, match='Internal Error'): |
| 367 | Model().a_property |
| 368 | |
| 369 | |
| 370 | def test_extra_allowed(): |