fix tests a little

This commit is contained in:
dni ⚡
2022-10-25 09:24:14 +02:00
parent e670b53412
commit 017fd6bb09
3 changed files with 8 additions and 5 deletions
+3 -2
View File
@@ -11,10 +11,11 @@ from lnbits.core.views.api import (
api_payment,
api_payments_create_invoice,
)
from lnbits.settings import wallet_class
from lnbits.settings import get_wallet_class
from ...helpers import get_random_invoice_data, is_regtest
WALLET = get_wallet_class()
# check if the client is working
@pytest.mark.asyncio
@@ -209,7 +210,7 @@ async def test_api_payment_with_key(invoice, inkey_headers_from):
# check POST /api/v1/payments: invoice creation with a description hash
@pytest.mark.skipif(
wallet_class.__name__ in ["CoreLightningWallet"],
WALLET.__class__.__name__ in ["CoreLightningWallet"],
reason="wallet does not support description_hash",
)
@pytest.mark.asyncio