Testing: postgres db backend (#711)

* try postgres run

* fix yaml

* test with postgres

* check with postgres

* inkey_from

* remove trio

* add coverage

* add coverage

* more python testing

* use @pytest_asyncio.fixture

* remove unused imports

* fix api_payment payment lookup

* measure durations
This commit is contained in:
calle
2022-07-07 18:29:26 +02:00
committed by GitHub
parent 262bd32f44
commit 63d4e60542
12 changed files with 91 additions and 45 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
import json
import pytest
import pytest_asyncio
import secrets
from lnbits.core.crud import create_account, create_wallet
from lnbits.extensions.bleskomat.crud import create_bleskomat, create_bleskomat_lnurl
@@ -20,7 +21,7 @@ exchange_rate_providers["dummy"] = {
}
@pytest.fixture
@pytest_asyncio.fixture
async def bleskomat():
user = await create_account()
wallet = await create_wallet(user_id=user.id, wallet_name="bleskomat_test")
@@ -34,7 +35,7 @@ async def bleskomat():
return bleskomat
@pytest.fixture
@pytest_asyncio.fixture
async def lnurl(bleskomat):
query = {
"tag": "withdrawRequest",
@@ -1,4 +1,5 @@
import pytest
import pytest_asyncio
import secrets
from lnbits.core.crud import get_wallet
from lnbits.settings import HOST, PORT