mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-13 12:33:25 +02:00
Add test for create offer without nonce (#1583)
This commit is contained in:
parent
1e1e3738c9
commit
8a317baabd
1 changed files with 12 additions and 1 deletions
|
|
@ -338,7 +338,18 @@ def test_get_best_block_height(squeak_core, genesis_block_info):
|
|||
assert best_block_height == genesis_block_info.block_height
|
||||
|
||||
|
||||
def test_create_offer(squeak, peer_address, price_msat, created_offer, invoice):
|
||||
def test_create_offer(squeak_core, squeak, secret_key, peer_address, price_msat):
|
||||
created_offer = squeak_core.create_offer(
|
||||
squeak,
|
||||
secret_key,
|
||||
peer_address,
|
||||
price_msat,
|
||||
)
|
||||
|
||||
assert created_offer is not None
|
||||
|
||||
|
||||
def test_created_offer(squeak, peer_address, price_msat, created_offer, invoice):
|
||||
|
||||
assert created_offer.squeak_hash == get_hash(squeak)
|
||||
assert created_offer.payment_hash == invoice.r_hash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue