fix bleskomat test (#523)

This commit is contained in:
calle 2022-02-14 13:49:15 +01:00 committed by GitHub
parent 09b86605dd
commit 8d7302e4cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}")
assert response.status_code == 200
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)
assert wallet.balance_msat == 0
bleskomat_lnurl = await get_bleskomat_lnurl(secret)