Test basic model inheritance with abstract base model.
(db)
| 5 | |
| 6 | @pytest.mark.asyncio |
| 7 | async def test_basic(db): |
| 8 | """Test basic model inheritance with abstract base model.""" |
| 9 | model = MyDerivedModel(name="test") |
| 10 | assert hasattr(MyAbstractBaseModel(), "name") |
| 11 | assert hasattr(model, "created_at") |
| 12 | assert hasattr(model, "modified_at") |
| 13 | assert hasattr(model, "name") |
| 14 | assert hasattr(model, "first_name") |
| 15 | await model.save() |
| 16 | assert model.created_at is not None |
| 17 | assert model.modified_at is not None |
nothing calls this directly
no test coverage detected
searching dependent graphs…