mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-01-09 11:44:20 +01:00
Github CI with Postgres (#417)
* with postgres * postgres test explicit * make format * start postgres only if needed * remove if again * print db * db in matrix * delete schema * use new env var MINT_TEST_DATABASE for tests * add db path to regtest
This commit is contained in:
@@ -6,6 +6,7 @@ from cashu.mint.ledger import Ledger
|
||||
from cashu.wallet.wallet import Wallet
|
||||
from cashu.wallet.wallet import Wallet as Wallet1
|
||||
from tests.conftest import SERVER_ENDPOINT
|
||||
from tests.helpers import is_postgres
|
||||
|
||||
|
||||
async def assert_err(f, msg):
|
||||
@@ -61,3 +62,10 @@ async def test_melt_quote(wallet1: Wallet, ledger: Ledger):
|
||||
assert quote.checking_id == invoice.payment_hash
|
||||
assert quote.paid_time is None
|
||||
assert quote.created_time
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.skipif(not is_postgres, reason="only works with Postgres")
|
||||
async def test_postgres_working():
|
||||
assert is_postgres
|
||||
assert True
|
||||
|
||||
Reference in New Issue
Block a user