aboutsummaryrefslogtreecommitdiff
path: root/test/functional/example_test.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-09-09 13:32:37 -0400
committerMarcoFalke <falke.marco@gmail.com>2018-10-24 22:02:36 -0400
commitf7adb32e383bbbdb473eb470e4a6872b582cac80 (patch)
tree4d59469a75a5e7b2fd91412c356a7c1501222a77 /test/functional/example_test.py
parent86fadee9904198ca706d706a8545ee908e830dfa (diff)
downloadbitcoin-f7adb32e383bbbdb473eb470e4a6872b582cac80.tar.xz
qa: Run all tests even if wallet is not compiled
Github-Pull: #14180 Rebased-From: fac95398366f644911b58f1605e6bc37fb76782d
Diffstat (limited to 'test/functional/example_test.py')
-rwxr-xr-xtest/functional/example_test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/example_test.py b/test/functional/example_test.py
index 3bdb3b4f1c..8f78a9d7bf 100755
--- a/test/functional/example_test.py
+++ b/test/functional/example_test.py
@@ -67,10 +67,11 @@ def custom_function():
# self.log.info("running custom_function") # Oops! Can't run self.log outside the BitcoinTestFramework
pass
+
class ExampleTest(BitcoinTestFramework):
# Each functional test is a subclass of the BitcoinTestFramework class.
- # Override the set_test_params(), add_options(), setup_chain(), setup_network()
+ # Override the set_test_params(), skip_test_if_missing_module(), add_options(), setup_chain(), setup_network()
# and setup_nodes() methods to customize the test setup as required.
def set_test_params(self):
@@ -84,6 +85,9 @@ class ExampleTest(BitcoinTestFramework):
# self.log.info("I've finished set_test_params") # Oops! Can't run self.log before run_test()
+ def skip_test_if_missing_module(self):
+ self.skip_if_no_wallet()
+
# Use add_options() to add specific command-line options for your test.
# In practice this is not used very much, since the tests are mostly written
# to be run in automated environments without command-line options.