@@ -24,13 +24,3 @@ async def test_api_public_payment_longpolling_wrong_hash(client, invoice):
|
||||
)
|
||||
assert response.status_code == 404
|
||||
assert response.json()["detail"] == "Payment does not exist."
|
||||
|
||||
|
||||
# check GET /.well-known/lnurlp/{username}: wrong username [should fail]
|
||||
@pytest.mark.asyncio
|
||||
async def test_lnaddress_wrong_hash(client):
|
||||
username = "wrong_name"
|
||||
response = await client.get(f"/.well-known/lnurlp/{username}")
|
||||
assert response.status_code == 200
|
||||
assert response.json()["status"] == "ERROR"
|
||||
assert response.json()["reason"] == "Address not found."
|
||||
|
||||
Reference in New Issue
Block a user