mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-24 00:24:19 +01:00
Fix example test
The example test uses a rpc call `summary` that isn't available (anymore) The assert should be lowercase, otherwise it fails.
This commit is contained in:
committed by
Christian Decker
parent
b0d462a303
commit
4f7e9da3db
@@ -91,9 +91,8 @@ pluginopt = {'plugin': os.path.join(os.path.dirname(__file__), "YOUR_PLUGIN.py")
|
||||
|
||||
def test_your_plugin(node_factory, bitcoind):
|
||||
l1 = node_factory.get_node(options=pluginopt)
|
||||
s = l1.rpc.summary()
|
||||
s = l1.rpc.getinfo()
|
||||
assert(s['network'] == 'REGTEST') # or whatever you want to test
|
||||
assert(s['network'] == 'regtest')
|
||||
```
|
||||
|
||||
Tests are run against pull requests, all commits on `master`, as well as once
|
||||
|
||||
Reference in New Issue
Block a user