mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 20:42:32 +02:00
fix tests settings
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user