From 0568379f8d0eb762c8004333a77bc28c1a014cc7 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 22 May 2019 19:29:05 +0200 Subject: [PATCH] core/tests: disable over_fee_threshold test --- core/tests/test_apps.wallet.signtx.fee_threshold.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/tests/test_apps.wallet.signtx.fee_threshold.py b/core/tests/test_apps.wallet.signtx.fee_threshold.py index 4b4f1935f..5d272d602 100644 --- a/core/tests/test_apps.wallet.signtx.fee_threshold.py +++ b/core/tests/test_apps.wallet.signtx.fee_threshold.py @@ -21,9 +21,15 @@ from apps.wallet.sign_tx import helpers, signing class TestSignTxFeeThreshold(unittest.TestCase): # pylint: disable=C0301 + # the following test is disabled, because there are not enough + # inputs to trigger the excessive threshold warning + # + # this is being tested in the device test: + # test_msg_signtx.test_testnet_fee_too_high + + """ def test_over_fee_threshold(self): coin_bitcoin = coins.by_name('Bitcoin') - coin_bitcoin.maxfee_kb = 500000 ptx1 = TransactionType(version=1, lock_time=0, inputs_cnt=2, outputs_cnt=1, extra_data_len=0) pinp1 = TxInputType(script_sig=unhexlify('483045022072ba61305fe7cb542d142b8f3299a7b10f9ea61f6ffaab5dca8142601869d53c0221009a8027ed79eb3b9bc13577ac2853269323434558528c6b6a7e542be46e7e9a820141047a2d177c0f3626fc68c53610b0270fa6156181f46586c679ba6a88b34c6f4874686390b4d92e5769fbb89c8050b984f4ec0b257a0e5c4ff8bd3b035a51709503'), @@ -89,6 +95,7 @@ class TestSignTxFeeThreshold(unittest.TestCase): signer = signing.sign_tx(tx, keychain) for request, response in chunks(messages, 2): self.assertEqual(signer.send(request), response) + """ def test_under_threshold(self): coin_bitcoin = coins.by_name('Bitcoin')