test should pass now, WALLET is initialised after the settings are loaded from db.

This commit is contained in:
dni ⚡ 2022-12-07 13:38:33 +01:00
parent 35536dde9b
commit 89933c2d30
3 changed files with 23 additions and 7 deletions

View file

@ -1,13 +1,11 @@
from mock import AsyncMock
from lnbits import bolt11
from lnbits.settings import get_wallet_class
from lnbits.wallets.base import PaymentResponse, PaymentStatus, StatusResponse
from lnbits.wallets.fake import FakeWallet
from .helpers import get_random_string, is_fake
from .helpers import WALLET, get_random_string, is_fake
WALLET = get_wallet_class()
# generates an invoice with FakeWallet
async def generate_mock_invoice(**x):