fix: some tests

This commit is contained in:
Vlad Stan
2024-10-17 10:37:43 +02:00
committed by dni ⚡
parent b4c57c0faf
commit 376081b369
4 changed files with 26 additions and 21 deletions
+2 -1
View File
@@ -102,7 +102,7 @@ async def db():
yield Database("database")
@pytest_asyncio.fixture(scope="package")
@pytest_asyncio.fixture(scope="session")
async def user_alan():
account = await get_account_by_username("alan")
if not account:
@@ -112,6 +112,7 @@ async def user_alan():
username="alan",
)
account.hash_password("secret1234")
account = await create_account(account)
yield account