From d9a3cf20a4960634440168fd5b09a40d577c3224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C5=91rinc?= Date: Sun, 8 Mar 2026 21:26:20 +0000 Subject: [PATCH] test: convert simple equality asserts in excluded files A few files still need to stay out of the later scripted diff because they contain more complicated assert shapes. Convert the straightforward equality checks in those files by hand first. Use a local import in `authproxy.py` so the change does not create an import cycle. --- test/functional/test_framework/authproxy.py | 3 ++- test/functional/wallet_bumpfee.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/functional/test_framework/authproxy.py b/test/functional/test_framework/authproxy.py index a3eb0b0578c..078672c3c62 100644 --- a/test/functional/test_framework/authproxy.py +++ b/test/functional/test_framework/authproxy.py @@ -144,7 +144,8 @@ class AuthServiceProxy(): else: return response['result'] else: - assert response['jsonrpc'] == '2.0' + from .util import assert_equal + assert_equal(response['jsonrpc'], '2.0') if status != HTTPStatus.OK: raise JSONRPCException({ 'code': -342, 'message': 'non-200 HTTP status code'}, status) diff --git a/test/functional/wallet_bumpfee.py b/test/functional/wallet_bumpfee.py index 4a6c45e746f..80735e01dd1 100755 --- a/test/functional/wallet_bumpfee.py +++ b/test/functional/wallet_bumpfee.py @@ -341,8 +341,8 @@ def test_simple_bumpfee_succeeds(self, mode, rbf_node, peer_node, dest_address): assert_equal(bumpedwtx["replaces_txid"], rbfid) # if this is a new_outputs test, check that outputs were indeed replaced if mode == "new_outputs": - assert len(bumpedwtx["details"]) == 1 - assert bumpedwtx["details"][0]["address"] == new_address + assert_equal(len(bumpedwtx["details"]), 1) + assert_equal(bumpedwtx["details"][0]["address"], new_address) self.clear_mempool()