mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
pytest: Add a test for plugin featurebits
This commit is contained in:
committed by
Rusty Russell
parent
a13591400a
commit
966ac95098
14
tests/plugins/feature-test.py
Executable file
14
tests/plugins/feature-test.py
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from pyln.client import Plugin
|
||||
|
||||
# Register a different set feature of feature bits for each location so we can
|
||||
# later check that they are being passed correctly.
|
||||
plugin = Plugin(
|
||||
init_features=1 << 101,
|
||||
node_features=1 << 103,
|
||||
invoice_features=1 << 105,
|
||||
)
|
||||
|
||||
|
||||
plugin.run()
|
||||
Reference in New Issue
Block a user