mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-03 03:31:47 +02:00
fix bleskomat test (#523)
This commit is contained in:
parent
09b86605dd
commit
8d7302e4cd
@ -97,7 +97,7 @@ async def test_bleskomat_lnurl_api_action_insufficient_balance(client, lnurl):
|
|||||||
response = await client.get(f"/bleskomat/u?k1={secret}&pr={pr}")
|
response = await client.get(f"/bleskomat/u?k1={secret}&pr={pr}")
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
assert response.json()["status"] == "ERROR"
|
assert response.json()["status"] == "ERROR"
|
||||||
assert "Insufficient balance" in response.json()["reason"]
|
assert ("Insufficient balance" in response.json()["reason"]) or ("fee" in response.json()["reason"])
|
||||||
wallet = await get_wallet(bleskomat.wallet)
|
wallet = await get_wallet(bleskomat.wallet)
|
||||||
assert wallet.balance_msat == 0
|
assert wallet.balance_msat == 0
|
||||||
bleskomat_lnurl = await get_bleskomat_lnurl(secret)
|
bleskomat_lnurl = await get_bleskomat_lnurl(secret)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user