fix tests a little
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user