mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-16 13:01:04 +02:00
Add test for get sent offer by payment hash missing (#1692)
This commit is contained in:
parent
74222b9a62
commit
76e1bd29cc
1 changed files with 9 additions and 0 deletions
|
|
@ -1260,3 +1260,12 @@ def test_get_sent_offer(squeak_db, inserted_sent_offer_id, sent_offer, payment_h
|
|||
assert retrieved_sent_offer._replace(
|
||||
sent_offer_id=None,
|
||||
) == sent_offer
|
||||
|
||||
|
||||
def test_get_sent_offer_missing(squeak_db, inserted_sent_offer_id):
|
||||
random_hash = gen_random_hash()
|
||||
retrieved_sent_offer = squeak_db.get_sent_offer_by_payment_hash(
|
||||
random_hash,
|
||||
)
|
||||
|
||||
assert retrieved_sent_offer is None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue