fix tests settings

This commit is contained in:
dni ⚡
2022-10-03 16:46:56 +02:00
parent 1ffc8c3498
commit 20d38535aa
2 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ from lnbits.core.crud import create_account, create_wallet, get_wallet
from lnbits.core.models import BalanceCheck, Payment, User, Wallet
from lnbits.core.views.api import CreateInvoiceData, api_payments_create_invoice
from lnbits.db import Database
from lnbits.settings import HOST, PORT
from lnbits.settings import settings
from tests.helpers import credit_wallet, get_random_invoice_data
@@ -38,7 +38,7 @@ def app(event_loop):
@pytest_asyncio.fixture(scope="session")
async def client(app):
client = AsyncClient(app=app, base_url=f"http://{HOST}:{PORT}")
client = AsyncClient(app=app, base_url=f"http://{settings.host}:{settings.port}")
yield client
await client.aclose()