add missing connection in tests
This commit is contained in:
@ -73,6 +73,7 @@ def create_test_database():
|
|||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
async def sample_data():
|
async def sample_data():
|
||||||
|
async with database:
|
||||||
country = await Country(id=1, name="USA").save()
|
country = await Country(id=1, name="USA").save()
|
||||||
author = await Author(id=1, name="bug", rating=5, country=country).save()
|
author = await Author(id=1, name="bug", rating=5, country=country).save()
|
||||||
await Book(
|
await Book(
|
||||||
|
|||||||
Reference in New Issue
Block a user