(stream, flag_enabled, urls, results)
| 127 | |
| 128 | |
| 129 | def write_debug(stream, flag_enabled, urls, results): |
| 130 | print(f"[notify] flag: {'present' if flag_enabled else 'missing'}", file=stream) |
| 131 | print(f"[notify] urls: {len(urls)}", file=stream) |
| 132 | for url, accepted, reason in results: |
| 133 | status = "ok" if accepted else "failed" |
| 134 | print(f"[notify] {scheme_label(url)}: {status} ({reason})", file=stream) |
| 135 | |
| 136 | |
| 137 | def run_dry_run(flag_file, environ, debug=False, stream=sys.stderr): |
no test coverage detected