fix: tests

This commit is contained in:
Vlad Stan
2026-03-23 12:32:39 +02:00
parent fe9aa4d8c9
commit 17fd459fa7
4 changed files with 14 additions and 6 deletions
+2 -2
View File
@@ -507,9 +507,9 @@ async def test_api_payment_without_key(invoice: Payment):
# check api_payment() internal function call (NOT API): payment status
@pytest.mark.anyio
async def test_api_payment_with_key(invoice: Payment, inkey_headers_from):
async def test_api_payment_with_key(invoice: Payment, inkey_headers_to):
# check the payment status
response = await api_payment(invoice.payment_hash, inkey_headers_from["X-Api-Key"])
response = await api_payment(invoice.payment_hash, inkey_headers_to["X-Api-Key"])
assert isinstance(response, dict)
assert response["paid"] is True
assert "details" in response