Skip to content

Commit

Permalink
Merge pull request #81 from uparma/fix/sorted_test
Browse files Browse the repository at this point in the history
cheap fix for sorted check
  • Loading branch information
MKoesters authored Apr 7, 2022
2 parents 6bce5f0 + 6df56bb commit dae78a4
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 dae78a4

Please sign in to comment.