We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e132ff7 commit af8aa42Copy full SHA for af8aa42
1 file changed
tests/uijson_test.py
@@ -98,4 +98,18 @@ def test_gravity_uijson(tmp_path):
98
with open(uijson_path, encoding="utf-8") as f:
99
uijson_data = json.load(f)
100
101
- assert uijson_data == params_data
+ params_data_nobraces = {}
102
+ for param, data in params_data.items():
103
+ if isinstance(data, dict):
104
+ field_data_nobraces = {}
105
+ for field, value in data.items():
106
+ if isinstance(value, str):
107
+ value = value.removeprefix("{").removesuffix("}")
108
+ if isinstance(value, list):
109
+ value = [v.removeprefix("{").removesuffix("}") for v in value]
110
+ field_data_nobraces[field] = value
111
+ else:
112
+ field_data_nobraces = data
113
+ params_data_nobraces[param] = field_data_nobraces
114
+
115
+ assert uijson_data == params_data_nobraces
0 commit comments