core-lightning/tests
Christian Decker 9d4148ce68 pylightning: Warn users of plugins that may break due to extra args
We recently noticed that the way we unpack the call arguments for hooks and
notifications in pylightning breaks pretty quickly once you start changing the
hook and notification params. If you add params they will not get mapped
correctly causing the plugin to error out.

This can be fixed by adding a `VAR_KEYWORD` argument to the calbacks, i.e., by
adding a single `**kwargs` argument at the end of the signature. This commit
adds a check that such a catch-all argument exists, and emits a warning if it
doesn't.

It also fixes up the plugins that we ship ourselves.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-08-05 00:19:48 +00:00
..
data pytest: test starting with db corrupted by dangling peer. 2019-02-21 12:03:54 +01:00
plugins pylightning: Warn users of plugins that may break due to extra args 2019-08-05 00:19:48 +00:00
benchmark.py py-tests: rename 'announce' to 'wait_for_announce' 2018-12-08 15:15:55 -08:00
btcproxy.py pytest: create proper mock failures. 2019-01-29 04:50:01 +00:00
conftest.py pytest: Pass result to fixtures and keep directories of failed tests 2018-08-07 00:54:19 +00:00
fixtures.py pytest: fail tests if we get any LOG_BROKEN level messages, unless flagged. 2019-07-02 03:26:10 +00:00
requirements.txt added mako dependency to tests/requirements.txt 2019-07-31 07:46:49 +08:00
test_closing.py pytest: use absolute paths for plugin arguments. 2019-08-03 09:10:11 +00:00
test_connection.py pytest: test_fee_limits, add case where opening channel is denied when feerate is too low 2019-07-27 05:14:34 +00:00
test_db.py db: fix dangling peers on db upgrade. 2019-02-21 12:03:54 +01:00
test_gossip.py gossipd/routing.c: Correctly handle a duplicated entry in exclude of getroute. 2019-08-02 16:06:15 +02:00
test_invoices.py bolt11: fix decoding and encoding of unknown fields. 2019-05-10 11:25:36 +00:00
test_misc.py lightningd: simplify --daemon. 2019-08-04 21:29:03 +02:00
test_pay.py pytest: use absolute paths for plugin arguments. 2019-08-03 09:10:11 +00:00
test_plugin.py plugins: detect and fixup old relative paths. 2019-08-03 09:10:11 +00:00
test_wallet.py wallet: clean reserved inputs on startup. 2019-06-06 04:47:44 +00:00
utils.py pytest: fail tests if we get any LOG_BROKEN level messages, unless flagged. 2019-07-02 03:26:10 +00:00