perturbopy.test_utils.compare_data.yaml.equal_values

perturbopy.test_utils.compare_data.yaml.equal_values(file1, file2, ig_n_tol)

Determines if two YAML files contain the same value for the same keys. keys must be in ‘test keywords’

Parameters:
  • file1 (str) – first YAML file name

  • file2 (str) – second YAML file name

  • ig_n_tol (dict) – dictionary of keywords and tolerances needed to make comparison on files

Returns:

  • equal_vlaues (bool) – boolean specifying if both YAML files contain the same keys and values

  • diff (str) – string which contains the information about the number of failed tests

  • .. note:: – Also, the file {name_of_file}_errors_file.yml will be generated in case of the fail of some comparisons.