-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat path evaluation #162
base: develop
Are you sure you want to change the base?
Feat path evaluation #162
Conversation
…integrated in base_page_object.py
…ct_by_path of base_page_object.py in order to get a list with more than one element if exist in the path. The rest of files have been changed to make a get-config test that try the issue .
…ded in get_tag_value_in_given_dict_by_path method of base_page_object.py file.
for i in range(0, len(parsed_dict)): | ||
subdict = parsed_dict[i] | ||
if path[0] in subdict: | ||
return_result = self.get_tag_value_in_given_dict_by_path(auxiliar_output_list,path=path, parsed_dict=subdict[path[0]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
split line legth
@@ -240,11 +280,15 @@ def validate_get_test_case(self): | |||
print(self.values_after_get) | |||
test_passes = True | |||
for key, value in self.values_after_get.items(): | |||
if not self.values_after_get[key]: | |||
if not self.values_after_get[key]: #Check if some of the elements of values_after_get[key] is zero, empty, False or None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eplit line length
dict_variables_to_commit = self.generic_variables_to_commit[0] | ||
dict_variables_to_commit.pop('value_to_commit') | ||
variables_to_search=dict_variables_to_commit | ||
list_path_eval = self.get_tag_value_in_given_dict_by_path([],path=variables_to_search['path_list'], parsed_dict=parsed_dict) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line legth
path=variable['path_list']), | ||
'path_string': variable['path_string'], | ||
'path_list': variable['path_list'], | ||
} | ||
self.generic_values_before_commit.append(new_variable) | ||
|
||
def get_tag_value_in_given_dict_by_path(self, path, parsed_dict): | ||
def get_unique_tag_value_in_given_dict_by_path(self, path, parsed_dict): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method definitions inside a class are surrounded by a single blank line.
Issue #99 solved, please review the modifications in the code before accepting the pull request. When this is accepted, an automatic merge will be done in develop.