* added test for empty post data, for issue #847 * black * fixed the failing testcase * Update lnbits/decorators.py Co-authored-by: calle <93376500+callebtc@users.noreply.github.com> Co-authored-by: dni <dni.khr@gmail.com> Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
This commit is contained in:
parent
034813a1ab
commit
d989441587
2 changed files with 14 additions and 1 deletions
|
|
@ -45,6 +45,13 @@ async def test_get_wallet_adminkey(client, adminkey_headers_to):
|
|||
assert "id" in result
|
||||
|
||||
|
||||
# check POST /api/v1/payments: empty request
|
||||
@pytest.mark.asyncio
|
||||
async def test_post_empty_request(client):
|
||||
response = await client.post("/api/v1/payments")
|
||||
assert response.status_code == 401
|
||||
|
||||
|
||||
# check POST /api/v1/payments: invoice creation
|
||||
@pytest.mark.asyncio
|
||||
async def test_create_invoice(client, inkey_headers_to):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue