aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'ice_validator/tests/helpers.py')
-rw-r--r--ice_validator/tests/helpers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ice_validator/tests/helpers.py b/ice_validator/tests/helpers.py
index f4a368c..ec14bc0 100644
--- a/ice_validator/tests/helpers.py
+++ b/ice_validator/tests/helpers.py
@@ -255,6 +255,9 @@ def traverse(data, search_key, func, path=None):
traverse(value, search_key, func, curr_path)
elif value == search_key:
func(curr_path, value)
+ elif search_key == data:
+ curr_path = path + [data]
+ func(curr_path, data)
def check_indices(pattern, values, value_type):