Skip to content

Commit f9f00a9

Browse files
committed
extra_keys -> region_keys
1 parent c3076ef commit f9f00a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_esmf_summary_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def check_nested_dict(
170170
# check that all keys in correct_dict are in input_dict
171171
if input_dict.keys() < correct_dict.keys():
172172
raise ValueError(f"Missing keys for {region} (depth: {depth}): {set(correct_dict.keys()) - input_dict.keys()}")
173-
extra_keys = set(correct_dict.keys()) - metric_keys
173+
region_keys = set(correct_dict.keys()) - metric_keys
174174

175175
# first check metric values
176176
for k in metric_keys:
@@ -179,7 +179,7 @@ def check_nested_dict(
179179
)
180180

181181
# recursively check children dicts
182-
for k in extra_keys:
182+
for k in region_keys:
183183
check_nested_dict(input_dict[k], correct_dict[k], metric_keys, k, depth + 1)
184184

185185

0 commit comments

Comments
 (0)