From 535aa741e1cef1104f1b8358176f35fdf704170c Mon Sep 17 00:00:00 2001 From: Jonathan Zernik Date: Tue, 12 Oct 2021 19:51:56 -0700 Subject: [PATCH] Combine reduntant tests for squeak core create offer (#1588) --- tests/core/test_squeak_core.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/core/test_squeak_core.py b/tests/core/test_squeak_core.py index 2fb8d304..ac838384 100644 --- a/tests/core/test_squeak_core.py +++ b/tests/core/test_squeak_core.py @@ -348,7 +348,14 @@ def test_get_best_block_height(squeak_core, block_info): assert best_block_height == block_info.block_height -def test_create_offer(squeak_core, squeak, secret_key, peer_address, price_msat): +def test_create_offer( + squeak_core, + squeak, + secret_key, + peer_address, + price_msat, + invoice, +): created_offer = squeak_core.create_offer( squeak, secret_key, @@ -356,11 +363,6 @@ def test_create_offer(squeak_core, squeak, secret_key, peer_address, price_msat) 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 assert created_offer.price_msat == price_msat