mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
pytest plugins: use the standard 'no operation' syntax for hooks
This commit is contained in:
committed by
ZmnSCPxj, ZmnSCPxj jxPCSmnZ
parent
6e34aa233a
commit
9030e5d779
@@ -11,7 +11,7 @@ plugin = Plugin()
|
||||
@plugin.hook('invoice_payment')
|
||||
def on_payment(payment, plugin, **kwargs):
|
||||
time.sleep(float(plugin.get_option('holdtime')))
|
||||
return {}
|
||||
return {'result': 'continue'}
|
||||
|
||||
|
||||
plugin.add_option('holdtime', '10', 'The time to hold invoice for.')
|
||||
|
||||
Reference in New Issue
Block a user