aboutsummaryrefslogtreecommitdiff
path: root/test/functional/example_test.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-09-17 14:00:41 -0400
committerMarcoFalke <falke.marco@gmail.com>2018-09-17 14:00:47 -0400
commit4901c00792c1dabae4bb01e6373c9b1ed9ef3008 (patch)
tree55e00ff28fd4dc73dd2adc9c9d745d9845b619c4 /test/functional/example_test.py
parent2d4749b366c4cae3da19017d6658f11349634303 (diff)
parent0ca4c8b3c61984e9e2ab5a2a9a7c47faf139d1fc (diff)
downloadbitcoin-4901c00792c1dabae4bb01e6373c9b1ed9ef3008.tar.xz
Merge #14236: qa: generate --> generatetoaddress change to allow tests run without wallet
0ca4c8b3c6 Changed functional tests which do not require wallets to run without (sanket1729) Pull request description: Addresses #14216 . Changed Changed `get_deterministic_priv_key()` to return named tuple`(address, key)` I have tried to be exhaustive as possible in maximum coverage for non-wallet mode without affecting any coverage for wallet mode. However, I could not check the tests in wallet mode because of timeout issues. Hopefully, travis job checks those. Tests `feature_block.py`, `feature_logging.py` and `feature_reindex.py` were skipping despite having no direct dependency on any wallet functions. So, I have also disabled the `skip_test_no_wallet()` for those files too. Tree-SHA512: 8f84bd8400a732d4266c7518d5cbcf1eb761f623a64a74849e0470142c8ef22cb75364474ddae75d9213c3d16659a52917b5ed979a313695da6abd16c4fd7445
Diffstat (limited to 'test/functional/example_test.py')
-rwxr-xr-xtest/functional/example_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/example_test.py b/test/functional/example_test.py
index 937a525401..3f15367a75 100755
--- a/test/functional/example_test.py
+++ b/test/functional/example_test.py
@@ -85,6 +85,8 @@ class ExampleTest(BitcoinTestFramework):
# self.log.info("I've finished set_test_params") # Oops! Can't run self.log before run_test()
+ # Use skip_test_if_missing_module() to skip the test if your test requires certain modules to be present.
+ # This test uses generate which requires wallet to be compiled
def skip_test_if_missing_module(self):
self.skip_if_no_wallet()