From 6df56bb29d15bf661eeccda7e8da94f4feb31a27 Mon Sep 17 00:00:00 2001 From: tristan-ranff Date: Thu, 7 Apr 2022 16:39:40 +0200 Subject: [PATCH] cheap fix for sorted check --- tests/test_jsons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_jsons.py b/tests/test_jsons.py index 91c8af7..298334a 100755 --- a/tests/test_jsons.py +++ b/tests/test_jsons.py @@ -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)