diff options
| author | MarcoFalke <[email protected]> | 2018-09-09 13:32:37 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-10-24 22:02:36 -0400 |
| commit | f7adb32e383bbbdb473eb470e4a6872b582cac80 (patch) | |
| tree | 4d59469a75a5e7b2fd91412c356a7c1501222a77 /test/functional/interface_zmq.py | |
| parent | qa: Premine to deterministic address with -disablewallet (diff) | |
| download | discoin-f7adb32e383bbbdb473eb470e4a6872b582cac80.tar.xz discoin-f7adb32e383bbbdb473eb470e4a6872b582cac80.zip | |
qa: Run all tests even if wallet is not compiled
Github-Pull: #14180
Rebased-From: fac95398366f644911b58f1605e6bc37fb76782d
Diffstat (limited to 'test/functional/interface_zmq.py')
| -rwxr-xr-x | test/functional/interface_zmq.py | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/test/functional/interface_zmq.py b/test/functional/interface_zmq.py index 745cc9e4f..c853ba7e3 100755 --- a/test/functional/interface_zmq.py +++ b/test/functional/interface_zmq.py @@ -5,15 +5,16 @@ """Test the ZMQ notification interface.""" import struct -from test_framework.test_framework import ( - BitcoinTestFramework, skip_if_no_bitcoind_zmq, skip_if_no_py3_zmq) +from test_framework.test_framework import BitcoinTestFramework from test_framework.messages import CTransaction -from test_framework.util import (assert_equal, - bytes_to_hex_str, - hash256, - ) +from test_framework.util import ( + assert_equal, + bytes_to_hex_str, + hash256, +) from io import BytesIO + class ZMQSubscriber: def __init__(self, socket, topic): self.sequence = 0 @@ -37,10 +38,12 @@ class ZMQTest (BitcoinTestFramework): def set_test_params(self): self.num_nodes = 2 - def setup_nodes(self): - skip_if_no_py3_zmq() - skip_if_no_bitcoind_zmq(self) + def skip_test_if_missing_module(self): + self.skip_if_no_py3_zmq() + self.skip_if_no_bitcoind_zmq() + self.skip_if_no_wallet() + def setup_nodes(self): # Import keys self.add_nodes(self.num_nodes) self.start_nodes() |