From 816970fdff57e45497ef7fdcac4ccdcd6dcd3ac0 Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Fri, 7 Feb 2025 10:58:51 -0800 Subject: [PATCH] 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. --- contrib/pyln-testing/pyln/testing/fixtures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/pyln-testing/pyln/testing/fixtures.py b/contrib/pyln-testing/pyln/testing/fixtures.py index dede9e88d..599c87925 100644 --- a/contrib/pyln-testing/pyln/testing/fixtures.py +++ b/contrib/pyln-testing/pyln/testing/fixtures.py @@ -458,8 +458,8 @@ def jsonschemas(): schemas = {} for fname in schemafiles: - if fname.startswith('lightning-') and fname.endswith('.json'): - base = fname.replace('lightning-', '').replace('.json', '') + if fname.endswith('.json'): + base = fname.replace('.json', '') # Request is 0 and Response is 1 schemas[base] = _load_schema(os.path.join('doc/schemas', fname)) return schemas