add 4 new relation signales, add 4 new aggr methods, wip to cleanup

This commit is contained in:
collerek
2021-03-12 12:13:08 +01:00
parent 0ae340100e
commit ff9d412508
15 changed files with 701 additions and 33 deletions

View File

@ -48,8 +48,10 @@ def create_test_database():
@pytest.fixture(autouse=True, scope="function")
async def cleanup():
await Book.objects.delete(each=True)
await Author.objects.delete(each=True)
yield
async with database:
await Book.objects.delete(each=True)
await Author.objects.delete(each=True)
@pytest.mark.asyncio