Skip to content

Commit

Permalink
Add backwards compatibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
muratabur committed Feb 3, 2025
1 parent a99b9eb commit 1d70a4d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# For transition only...
OLD_SCHEMAS_DIR = os.path.join(HOME, "v1-dev")


def schema_properties(schema_name):
"""
Returns the properties for a schema
Expand Down Expand Up @@ -112,9 +113,10 @@ def fire_stats():
"data_combinations": format(decimal.Decimal(N), ".6e"),
}


def load_jsons(filenames, location):
jsons = []
for filename in sorted(filenames):
with open(os.path.join(location, filename)) as jsonfile:
jsons.append(json.load(jsonfile))
return jsons
jsons = []
for filename in sorted(filenames):
with open(os.path.join(location, filename)) as jsonfile:
jsons.append(json.load(jsonfile))
return jsons

0 comments on commit 1d70a4d

Please sign in to comment.