[tests] don't override __init__() in individual tests
commit5448a1471d6fc638a2220ea5a2f3782172efe14c
authorJohn Newbery <john@johnnewbery.com>
Fri, 9 Jun 2017 22:21:21 +0000 (9 18:21 -0400)
committerJohn Newbery <john@johnnewbery.com>
Fri, 1 Sep 2017 16:25:55 +0000 (1 12:25 -0400)
treef03f452344b4866450cf60ac0b51d4ff6295631d
parent6cf094a0229d051ab8a15189c8a0bc6011919e72
[tests] don't override __init__() in individual tests

Almost all test scripts currently need to override the __init__()
method. When they do that they need to call into super().__init__() as
the base class does some generic initialization.

This commit makes the base class __init__() call into set_test_params()
method. Individual test cases can override set_test_params() to setup
their test parameters.
82 files changed:
test/functional/README.md
test/functional/abandonconflict.py
test/functional/assumevalid.py
test/functional/bip65-cltv-p2p.py
test/functional/bip68-112-113-p2p.py
test/functional/bip68-sequence.py
test/functional/bip9-softforks.py
test/functional/bipdersig-p2p.py
test/functional/blockchain.py
test/functional/bumpfee.py
test/functional/create_cache.py
test/functional/dbcrash.py
test/functional/decodescript.py
test/functional/disablewallet.py
test/functional/disconnect_ban.py
test/functional/example_test.py
test/functional/forknotify.py
test/functional/fundrawtransaction.py
test/functional/getblocktemplate_longpoll.py
test/functional/getchaintips.py
test/functional/httpbasics.py
test/functional/import-rescan.py
test/functional/importmulti.py
test/functional/importprunedfunds.py
test/functional/invalidateblock.py
test/functional/invalidblockrequest.py
test/functional/invalidtxrequest.py
test/functional/keypool-topup.py
test/functional/keypool.py
test/functional/listsinceblock.py
test/functional/listtransactions.py
test/functional/maxuploadtarget.py
test/functional/mempool_limit.py
test/functional/mempool_packages.py
test/functional/mempool_persist.py
test/functional/mempool_reorg.py
test/functional/mempool_resurrect_test.py
test/functional/mempool_spendcoinbase.py
test/functional/merkle_blocks.py
test/functional/mining.py
test/functional/multi_rpc.py
test/functional/multiwallet.py
test/functional/net.py
test/functional/nulldummy.py
test/functional/p2p-acceptblock.py
test/functional/p2p-compactblocks.py
test/functional/p2p-feefilter.py
test/functional/p2p-fullblocktest.py
test/functional/p2p-leaktests.py
test/functional/p2p-mempool.py
test/functional/p2p-segwit.py
test/functional/p2p-timeouts.py
test/functional/p2p-versionbits-warning.py
test/functional/preciousblock.py
test/functional/prioritise_transaction.py
test/functional/proxy_test.py
test/functional/pruning.py
test/functional/rawtransactions.py
test/functional/receivedby.py
test/functional/reindex.py
test/functional/replace-by-fee.py
test/functional/resendwallettransactions.py
test/functional/rest.py
test/functional/rpcbind_test.py
test/functional/rpcnamedargs.py
test/functional/segwit.py
test/functional/sendheaders.py
test/functional/signmessages.py
test/functional/signrawtransactions.py
test/functional/smartfees.py
test/functional/test_framework/test_framework.py
test/functional/txn_clone.py
test/functional/txn_doublespend.py
test/functional/uptime.py
test/functional/wallet-accounts.py
test/functional/wallet-dump.py
test/functional/wallet-encryption.py
test/functional/wallet-hd.py
test/functional/wallet.py
test/functional/walletbackup.py
test/functional/zapwallettxes.py
test/functional/zmq_test.py