Skip to content

Commit 816970f

Browse files
ShahanaFarooquiendothermicdev
authored andcommitted
pyln-testing: Removing the lightning- prefix check for schema files
Currently, pyln tests fail if the `lightning-` prefix is removed from schema/*.json files. In this release, we will update pyln to remove its reliance on this prefix, and in the next release, we will remove the prefixes from the files as well. Changelog-None.
1 parent fc08340 commit 816970f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/pyln-testing/pyln/testing/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ def jsonschemas():
458458

459459
schemas = {}
460460
for fname in schemafiles:
461-
if fname.startswith('lightning-') and fname.endswith('.json'):
462-
base = fname.replace('lightning-', '').replace('.json', '')
461+
if fname.endswith('.json'):
462+
base = fname.replace('.json', '')
463463
# Request is 0 and Response is 1
464464
schemas[base] = _load_schema(os.path.join('doc/schemas', fname))
465465
return schemas

0 commit comments

Comments
 (0)