chore: update to latest pytest (#2800)

This commit is contained in:
dni ⚡ 2024-12-11 10:39:28 +01:00 committed by GitHub
parent 8ff4962e86
commit 291c69e470
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 303 additions and 310 deletions

View file

@ -11,7 +11,7 @@ from lnbits.core.crud import (
from lnbits.db import POSTGRES
@pytest.mark.asyncio
@pytest.mark.anyio
async def test_date_conversion(db):
if db.type == POSTGRES:
row = await db.fetchone("SELECT now()::date as now")
@ -19,7 +19,7 @@ async def test_date_conversion(db):
# make test to create wallet and delete wallet
@pytest.mark.asyncio
@pytest.mark.anyio
async def test_create_wallet_and_delete_wallet(app, to_user):
# create wallet
wallet = await create_wallet(user_id=to_user.id, wallet_name="test_wallet_delete")