Skip to content

Commit

Permalink
Fix for empty list validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfe1 committed Dec 3, 2020
1 parent 865459f commit 73ef8ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Zoomba/APILibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,10 @@ def _key_by_key_list(self, key, value, actual_dictionary, unmatched_keys_list=No
"\nActual: " + str(actual_dictionary[key]))
continue
else:
actual_item = actual_dictionary[key][index]
if len(actual_dictionary[key]) == 0:
actual_item = ''
else:
actual_item = actual_dictionary[key][index]
temp_actual_dict = {key: actual_item}
temp_expected_dict = {key: item}
if unmatched_keys_list:
Expand Down

0 comments on commit 73ef8ac

Please sign in to comment.