(db)
| 345 | |
| 346 | @pytest.mark.asyncio |
| 347 | async def test_db_constraint(db): |
| 348 | author = await Author.create(name="Some One") |
| 349 | book = await BookNoConstraint.create(name="First!", author=author, rating=4) |
| 350 | book = await BookNoConstraint.all().select_related("author").get(pk=book.pk) |
| 351 | assert author.pk == book.author.pk |
| 352 | |
| 353 | |
| 354 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected
searching dependent graphs…