Skip to content

Commit

Permalink
Add SHAPE to list of legacy projects for duplicate-validation
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Apr 11, 2024
1 parent 25c8eda commit 69948d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_legacy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from nomenclature import DataStructureDefinition

LEGACY_PROJECTS = ["navigate", "engage", "shape"]


def test_legacy_variables():
# Check that (new) variables are not referenced as deprecated legacy variables
Expand All @@ -8,7 +10,7 @@ def test_legacy_variables():

legacy_variables = {}
for code, attrs in dsd.variable.items():
for project in ["navigate", "engage"]:
for project in LEGACY_PROJECTS:
if project in attrs.extra_attributes:
legacy_var = attrs.__getattr__(project)
if legacy_var in existing_variables:
Expand Down

0 comments on commit 69948d3

Please sign in to comment.