From f3b7df661fd52550c4de6ee36cac352e796c3d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Tue, 10 Jan 2023 16:20:51 +0100 Subject: [PATCH] fixed comparision issue : dict vs. object MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Eckel --- tests/db/test_planetmint_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/db/test_planetmint_api.py b/tests/db/test_planetmint_api.py index 3b949f9..0742fd4 100644 --- a/tests/db/test_planetmint_api.py +++ b/tests/db/test_planetmint_api.py @@ -332,7 +332,7 @@ class TestMultipleInputs(object): b.store_bulk_transactions([tx]) spent_inputs_user1 = b.get_spent(input_txid, 0) - assert spent_inputs_user1 == tx + assert spent_inputs_user1 == tx.to_dict() def test_get_spent_single_tx_multiple_outputs(self, b, user_sk, user_pk, alice): # create a new users @@ -359,7 +359,7 @@ class TestMultipleInputs(object): # check that used inputs are marked as spent for ffill in tx_create.to_inputs()[:2]: spent_tx = b.get_spent(ffill.fulfills.txid, ffill.fulfills.output) - assert spent_tx == tx_transfer_signed + assert spent_tx == tx_transfer_signed.to_dict() # check if remaining transaction that was unspent is also perceived # spendable by Planetmint