perturbopy.test_utils.compare_data.yaml.equal_list
- perturbopy.test_utils.compare_data.yaml.equal_list(list1, list2, key, ig_n_tol, path)
Determines if two lists contain the same values
- Parameters:
list1 (list) – first list
list2 (list) – second list
key (str) – A key for the tolerance. If this key is not specified in the tolerance dict, a default tolerance will be applied
ig_n_tol (dict) – dictionary of ignore keywords and tolerances needed to make comparison on values
path (str) – pseudo path to this item being compared
- Returns:
equal_vlaues (bool) – boolean specifying if both lists are equivalent
diff (str) – string which contains the information about the number of failed tests
output_res_list (list) – list with testing results. Either the item from the produced yaml-file will be saved, or it will be saved with the additional string FAIL