[Wallet] send without split (#249)

* send without split

* change test amount for nosplit send
This commit is contained in:
callebtc
2023-06-10 21:45:47 +02:00
committed by GitHub
parent af3e82691e
commit 959cc00c8a
6 changed files with 72 additions and 24 deletions

View File

@@ -57,6 +57,19 @@ def test_send(mint):
assert response.json()["balance"]
def test_send_without_split(mint):
with TestClient(app) as client:
response = client.post("/send?amount=1&nosplit=true")
assert response.status_code == 200
assert response.json()["balance"]
def test_send_without_split_but_wrong_amount(mint):
with TestClient(app) as client:
response = client.post("/send?amount=10&nosplit=true")
assert response.status_code == 400
def test_pending():
with TestClient(app) as client:
response = client.get("/pending")