@@ -540,6 +540,7 @@ def _get_test_cases(pattern):
540
540
MULTI_REG_SS_TESTS = "multisig_reg_ss_*.json"
541
541
MULTI_REG_FILE_TESTS = "multisig_file_*.json"
542
542
MULTI_REG_BAD_FILE_TESTS = "multisig_bad_file_*.json"
543
+ DESCRIPTOR_REG_TESTS = "descriptor_*.json"
543
544
DESCRIPTOR_REG_SS_TESTS = "descriptor_ss_*.json"
544
545
SIGN_MSG_TESTS = "msg_*.json"
545
546
SIGN_MSG_FILE_TESTS = "msgfile_*.json"
@@ -3341,8 +3342,8 @@ def test_generic_multisig_ss_signer(jadeapi):
3341
3342
_check_multisig_registration (jadeapi , multisig_data )
3342
3343
3343
3344
3344
- def test_miniscript_descriptor_registration (jadeapi ):
3345
- for descriptor_data in _get_test_cases (DESCRIPTOR_REG_SS_TESTS ):
3345
+ def test_miniscript_descriptor_registration (jadeapi , pattern ):
3346
+ for descriptor_data in _get_test_cases (pattern ):
3346
3347
# Register the descriptor
3347
3348
inputdata = descriptor_data ['input' ]
3348
3349
rslt = jadeapi .register_descriptor (inputdata ['network' ],
@@ -3398,10 +3399,6 @@ def test_miniscript_descriptor_registration(jadeapi):
3398
3399
assert rslt == addr_test ['expected_address' ]
3399
3400
3400
3401
3401
- def test_miniscript_descriptor_registration_ss_signer (jadeapi ):
3402
- test_miniscript_descriptor_registration (jadeapi ) # for now ...
3403
-
3404
-
3405
3402
def test_12word_mnemonic (jadeapi ):
3406
3403
# Short sanity-test of 12-word mnemonic
3407
3404
rslt = jadeapi .set_mnemonic (TEST_MNEMONIC_12 )
@@ -3674,7 +3671,7 @@ def run_api_tests(jadeapi, isble, qemu, authuser=False):
3674
3671
test_generic_multisig_files (jadeapi )
3675
3672
3676
3673
# Test descriptor wallets
3677
- test_miniscript_descriptor_registration (jadeapi )
3674
+ test_miniscript_descriptor_registration (jadeapi , DESCRIPTOR_REG_TESTS )
3678
3675
3679
3676
# Get (receive) green-addresses, get-xpub, and sign-message
3680
3677
test_get_greenaddress_receive_address (jadeapi )
@@ -3708,9 +3705,7 @@ def run_api_tests(jadeapi, isble, qemu, authuser=False):
3708
3705
test_generic_multisig_ss_signer (jadeapi )
3709
3706
3710
3707
# Test the descriptor wallets again, using a second signer
3711
- # NOTE: some of these tests assume 'test_miniscript_descriptor_registration()' test
3712
- # has already been run, to register the descriptors for the test mnemonic signer
3713
- test_miniscript_descriptor_registration_ss_signer (jadeapi )
3708
+ test_miniscript_descriptor_registration (jadeapi , DESCRIPTOR_REG_SS_TESTS )
3714
3709
3715
3710
test_get_singlesig_receive_address (jadeapi )
3716
3711
test_sign_liquid_tx (jadeapi , has_psram , has_ble , SIGN_LIQUID_TXN_SINGLE_SIG_TESTS )
0 commit comments