mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-17 13:07:32 +02:00
Add test case for get received offer db method when none (#1667)
This commit is contained in:
parent
8b5c651db4
commit
4af20e7b03
1 changed files with 8 additions and 0 deletions
|
|
@ -1087,6 +1087,14 @@ def test_get_received_offer(squeak_db, inserted_received_offer_id, received_offe
|
|||
) == received_offer
|
||||
|
||||
|
||||
def test_get_received_offer_none(squeak_db, inserted_received_offer_id, received_offer):
|
||||
retrieved_received_offer = squeak_db.get_received_offer(
|
||||
-1,
|
||||
)
|
||||
|
||||
assert retrieved_received_offer is None
|
||||
|
||||
|
||||
def test_get_received_offers(squeak_db, inserted_received_offer_id, squeak_hash, creation_date, expiry):
|
||||
expire_time_s = creation_date + expiry
|
||||
current_time_s = expire_time_s - 10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue