Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/test_framework.py
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | class BitcoinTestFramework(metaclass=BitcoinTestMetaClass): | ||||
def __init__(self): | def __init__(self): | ||||
"""Sets test framework defaults. Do not override this method. Instead, override the set_test_params() method""" | """Sets test framework defaults. Do not override this method. Instead, override the set_test_params() method""" | ||||
self.chain = 'regtest' | self.chain = 'regtest' | ||||
self.setup_clean_chain = False | self.setup_clean_chain = False | ||||
self.nodes = [] | self.nodes = [] | ||||
self.network_thread = None | self.network_thread = None | ||||
# Wait for up to 60 seconds for the RPC server to respond | # Wait for up to 60 seconds for the RPC server to respond | ||||
self.rpc_timeout = 60 | self.rpc_timeout = 60 | ||||
self.supports_cli = False | self.supports_cli = True | ||||
self.bind_to_localhost_only = True | self.bind_to_localhost_only = True | ||||
# We run parse_args before set_test_params for tests who need to | # We run parse_args before set_test_params for tests who need to | ||||
# know the parser options during setup. | # know the parser options during setup. | ||||
self.parse_args() | self.parse_args() | ||||
self.set_test_params() | self.set_test_params() | ||||
def main(self): | def main(self): | ||||
"""Main function. This should not be overridden by the subclass test scripts.""" | """Main function. This should not be overridden by the subclass test scripts.""" | ||||
▲ Show 20 Lines • Show All 572 Lines • Show Last 20 Lines |