fix: some tests

This commit is contained in:
Vlad Stan
2024-10-10 09:08:29 +02:00
committed by dni ⚡
parent ed81ca55d9
commit 388f9946e3
4 changed files with 26 additions and 21 deletions
+2 -1
View File
@@ -100,7 +100,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:
@@ -110,6 +110,7 @@ async def user_alan():
username="alan",
)
account.hash_password("secret1234")
account = await create_account(account)
yield account