mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-19 13:18:26 +02:00
Add test for yield received payments from settle index (#1703)
This commit is contained in:
parent
d0754d27a3
commit
dca65ede97
1 changed files with 18 additions and 0 deletions
|
|
@ -1460,3 +1460,21 @@ def test_get_received_payments(squeak_db, inserted_received_payment_ids):
|
|||
)
|
||||
|
||||
assert len(received_payments) == len(inserted_received_payment_ids)
|
||||
|
||||
|
||||
def test_yield_received_payments_from_settle_index(squeak_db, inserted_received_payment_ids):
|
||||
payments_iter = squeak_db.yield_received_payments_from_index(
|
||||
start_index=0,
|
||||
)
|
||||
|
||||
assert len(list(payments_iter)) == len(inserted_received_payment_ids)
|
||||
|
||||
|
||||
def test_yield_received_payments_from_other_settle_index(squeak_db, inserted_received_payment_ids):
|
||||
index = 43
|
||||
payments_iter = squeak_db.yield_received_payments_from_index(
|
||||
start_index=index,
|
||||
)
|
||||
|
||||
assert len(list(payments_iter)) == len(
|
||||
inserted_received_payment_ids) - index
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue