(output_files, before_val, after_val, attr, before_file,
after_file)
| 90 | |
| 91 | |
| 92 | def _print_diff(output_files, before_val, after_val, attr, before_file, |
| 93 | after_file): |
| 94 | diff = "\n".join( |
| 95 | map(_colorize, [ |
| 96 | s.strip("\n") for s in difflib.unified_diff(before_val, after_val, |
| 97 | before_file, after_file) |
| 98 | ])) |
| 99 | print(("[%s]\n" |
| 100 | "Difference in the action that generates the following output(s):" |
| 101 | "\n\t%s\n%s\n") % (attr, "\n\t".join(output_files.split()), diff)) |
| 102 | |
| 103 | |
| 104 | def _map_artifact_id_to_path(artifacts, path_fragments): |
no test coverage detected