Skip to content

Commit

Permalink
cheap fix for sorted check
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-ranff committed Apr 7, 2022
1 parent 9a4d4e4 commit 6df56bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_jsons.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def dynamic_sort(input, depth=0):
return next_list
return input

if dynamic_sort(jsons["parameters.json"]) == jsons["parameters.json"]:
if str(dynamic_sort(jsons["parameters.json"])) == str(jsons["parameters.json"]):
uprint(f"All nested objects are sorted in correct alphabetical order.", ok=True)
else:
uprint("parameters.json not sorted alphabetically. Run utils/sort.py", ok=False)
Expand Down

0 comments on commit 6df56bb

Please sign in to comment.