Trying to catchup with main

This commit is contained in:
ben
2022-12-06 20:35:58 +00:00
parent 166df0104e
commit 9971a560e1
87 changed files with 6750 additions and 830 deletions
+1
View File
@@ -1,6 +1,7 @@
import json
import secrets
import pytest
import pytest_asyncio
from lnbits.core.crud import create_account, create_wallet
@@ -1,6 +1,7 @@
import secrets
import pytest
import pytest_asyncio
from lnbits.core.crud import get_wallet
from lnbits.extensions.bleskomat.crud import get_bleskomat_lnurl
@@ -9,6 +10,8 @@ from lnbits.extensions.bleskomat.helpers import (
query_to_signing_payload,
)
from lnbits.settings import HOST, PORT
from tests.conftest import client
from tests.extensions.bleskomat.conftest import bleskomat, lnurl
from tests.helpers import credit_wallet, is_regtest
from tests.mocks import WALLET
+12 -2
View File
@@ -1,7 +1,17 @@
import asyncio
import json
import secrets
import pytest
import pytest_asyncio
from lnbits.extensions.boltz.boltz import create_reverse_swap
from lnbits.extensions.boltz.models import CreateReverseSubmarineSwap
from lnbits.core.crud import create_account, create_wallet, get_wallet
from lnbits.extensions.boltz.boltz import create_reverse_swap, create_swap
from lnbits.extensions.boltz.models import (
CreateReverseSubmarineSwap,
CreateSubmarineSwap,
)
from tests.mocks import WALLET
@pytest_asyncio.fixture(scope="session")
+2 -1
View File
@@ -1,6 +1,7 @@
import pytest
import pytest_asyncio
from tests.helpers import is_fake
from tests.helpers import is_fake, is_regtest
@pytest.mark.asyncio
+9 -2
View File
@@ -1,10 +1,17 @@
import pytest
import asyncio
import pytest
import pytest_asyncio
from lnbits.extensions.boltz.boltz import create_reverse_swap, create_swap
from lnbits.extensions.boltz.crud import (
create_reverse_submarine_swap,
create_submarine_swap,
get_reverse_submarine_swap,
get_submarine_swap,
)
from tests.helpers import is_fake
from tests.extensions.boltz.conftest import reverse_swap
from tests.helpers import is_fake, is_regtest
@pytest.mark.asyncio
+2 -1
View File
@@ -1,3 +1,4 @@
import pytest
import pytest_asyncio
from lnbits.core.crud import create_account, create_wallet
@@ -21,7 +22,7 @@ async def accounting_invoice(invoices_wallet):
invoice_data = CreateInvoiceData(
status="open",
currency="USD",
company_name="LNBits, Inc",
company_name="LNbits, Inc",
first_name="Ben",
last_name="Arc",
items=[{"amount": 10.20, "description": "Item costs 10.20"}],
@@ -1,4 +1,12 @@
import pytest
import pytest_asyncio
from loguru import logger
from lnbits.core.crud import get_wallet
from tests.conftest import adminkey_headers_from, client, invoice
from tests.extensions.invoices.conftest import accounting_invoice, invoices_wallet
from tests.helpers import credit_wallet
from tests.mocks import WALLET
@pytest.mark.asyncio
@@ -12,7 +20,7 @@ async def test_invoices_api_create_invoice_valid(client, invoices_wallet):
query = {
"status": "open",
"currency": "EUR",
"company_name": "LNBits, Inc.",
"company_name": "LNbits, Inc.",
"first_name": "Ben",
"last_name": "Arc",
"email": "ben@legend.arc",