test should pass now, WALLET is initialised after the settings are loaded from db.
This commit is contained in:
+1
-3
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user