Skip to content

Commit

Permalink
Update latest tests #226
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludee committed Jan 24, 2025
1 parent d033489 commit 3d9e5b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/metadata/latest/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@pytest.fixture
def load_files():
"""Load the example.json and context.json files."""
base_path = "metadata/v2/v20/"
base_path = "metadata/latest/"
example_file = os.path.join(base_path, "example.json")
context_file = os.path.join(base_path, "context.json")

Expand All @@ -27,7 +27,7 @@ def load_files():


def clean_context(context):
"""Remove invalid entries from the context (placeholders or invalid @type)."""
"""Remove invalid entries (placeholders or invalid @type)."""
cleaned_context = {}
for key, value in context.items():
if isinstance(value, dict):
Expand Down
2 changes: 1 addition & 1 deletion tests/metadata/latest/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ def get_string(s):
), "Wrong schema path in OEMetadata Schema (Latest)!"

assert get_string(OEMETADATA_LATEST_SCHEMA["$id"]) == get_string(
"https://raw.githubusercontent.com/OpenEnergyPlatform/oemetadata/production/metadata/v20/v20/schema.json"
"https://raw.githubusercontent.com/OpenEnergyPlatform/oemetadata/production/metadata/latest/schema.json"
), "Wrong id path in OEMetadata Schema (Latest)!"

0 comments on commit 3d9e5b0

Please sign in to comment.