mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-16 13:01:04 +02:00
Add test for get sent offers (#1695)
This commit is contained in:
parent
bde1b162f8
commit
ee6e7ca1a9
1 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue