fix flake8 E712 (comparison-to-bool)

This commit is contained in:
Pavol Rusnak
2023-01-30 11:46:44 +00:00
parent 9ef4bd8fb9
commit f6bd8684d3
16 changed files with 32 additions and 32 deletions
+2 -2
View File
@@ -115,7 +115,7 @@ async def test_bleskomat_lnurl_api_action_insufficient_balance(client, lnurl):
assert wallet.balance_msat == 0
bleskomat_lnurl = await get_bleskomat_lnurl(secret)
assert bleskomat_lnurl, not None
assert bleskomat_lnurl.has_uses_remaining() == True
assert bleskomat_lnurl.has_uses_remaining() is True
WALLET.pay_invoice.assert_not_called()
@@ -140,5 +140,5 @@ async def test_bleskomat_lnurl_api_action_success(client, lnurl):
assert wallet.balance_msat == 50000
bleskomat_lnurl = await get_bleskomat_lnurl(secret)
assert bleskomat_lnurl, not None
assert bleskomat_lnurl.has_uses_remaining() == False
assert bleskomat_lnurl.has_uses_remaining() is False
WALLET.pay_invoice.assert_called_once_with(pr, 2000)
@@ -80,7 +80,7 @@ async def test_invoices_api_partial_pay_invoice(
f"/invoices/api/v1/invoice/{invoice_id}/payments/{payment_hash}"
)
assert response.status_code == 200
assert response.json()["paid"] == True
assert response.json()["paid"] is True
# check invoice status
response = await client.get(f"/invoices/api/v1/invoice/{invoice_id}")
@@ -124,7 +124,7 @@ async def test_invoices_api_partial_pay_invoice(
# f"/invoices/api/v1/invoice/{invoice_id}/payments/{payment_hash}"
# )
# assert response.status_code == 200
# assert response.json()["paid"] == True
# assert response.json()["paid"] is True
# # check invoice status
# response = await client.get(f"/invoices/api/v1/invoice/{invoice_id}")