Mint: check that test db is different from main db (#419)

* check that test db is different from main db

* make format
This commit is contained in:
callebtc
2024-02-11 17:31:56 +01:00
committed by GitHub
parent f74f18c9ca
commit 6fd66b9d72
2 changed files with 3 additions and 1 deletions

View File

@@ -18,7 +18,6 @@ jobs:
mint-cache-secrets: ["false", "true"]
mint-only-deprecated: ["false", "true"]
mint-database: ["./test_data/test_mint", "postgres://cashu:cashu@localhost:5432/cashu"]
# mint-database: [""]
backend-wallet-class: ["FakeWallet"]
uses: ./.github/workflows/tests.yml
with:

View File

@@ -35,6 +35,9 @@ settings.mint_lightning_backend = settings.mint_lightning_backend or "FakeWallet
settings.fakewallet_brr = True
settings.fakewallet_delay_payment = False
settings.fakewallet_stochastic_invoice = False
assert (
settings.mint_test_database != settings.mint_database
), "Test database is the same as the main database"
settings.mint_database = settings.mint_test_database
settings.mint_derivation_path = "m/0'/0'/0'"
settings.mint_derivation_path_list = []