mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
pytest: add schema support for JSON responses.
This adds our first (basic) schema, and sews support into pyln-testing
so it will load schemas for any method for doc/schemas/{method}.schema.json.
All JSON responses in a test run are checked against the schema (if any).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -349,6 +349,7 @@ class UnixDomainSocketRpc(object):
|
||||
"enable": True
|
||||
},
|
||||
})
|
||||
# FIXME: Notification schema support?
|
||||
_, buf = self._readobj(sock, buf)
|
||||
|
||||
request = {
|
||||
|
||||
Reference in New Issue
Block a user