Add test for get sent offers (#1695)

This commit is contained in:
Jonathan Zernik 2021-10-23 01:04:40 -05:00 committed by GitHub
parent bde1b162f8
commit ee6e7ca1a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1342,3 +1342,15 @@ def test_get_sent_offer_by_squeak_and_peer_wrong_peer_address(
)
assert retrieved_sent_offer is None
def test_get_sent_offers(squeak_db, inserted_sent_offer_id):
sent_offers = squeak_db.get_sent_offers()
assert len(sent_offers) == 1
def test_get_sent_offers_none(squeak_db):
sent_offers = squeak_db.get_sent_offers()
assert len(sent_offers) == 0