def test_msg_gecko(env, pr_19900_gecko_ci): results_data = results.Results() results_data.add_jobs_from_log_files(*pr_19900_gecko_ci) results_data.treeherder_url = ("https://treeherder.mozilla.org/#/jobs?" "repo=try&" "revision=b0337497587b2bac7d2baeecea0d873df8bcb4f4") message = msg.for_results(results_data) assert message[0] == """# CI Results
def test_msg_both(env, pr_19900_gecko_ci, pr_19900_github): results_data = results.Results() results_data.add_jobs_from_log_files(*pr_19900_gecko_ci) results_data.treeherder_url = ("https://treeherder.mozilla.org/#/jobs?" "repo=try&" "revision=b0337497587b2bac7d2baeecea0d873df8bcb4f4") results_data.add_jobs_from_log_files(*pr_19900_github) results_data.wpt_sha = "6146f4a506c1b7efaac68c9e8d552597212eabca" message = msg.for_results(results_data) assert message[0] == """# CI Results
def test_msg_wptfyi(env, pr_19900_github): results_data = results.Results() results_data.add_jobs_from_log_files(*pr_19900_github) results_data.wpt_sha = "6146f4a506c1b7efaac68c9e8d552597212eabca" message = msg.for_results(results_data) assert message[0] == """# CI Results Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI Total 1 tests and 1 subtests ## Status Summary ### Firefox ERROR : 1 NOTRUN: 1 ### Chrome OK : 1 FAIL : 1 ### Safari OK : 1 FAIL : 1 ## Links [GitHub PR Head](https://wpt.fyi/results/?sha=6146f4a506c1b7efaac68c9e8d552597212eabca&label=pr_head) [GitHub PR Base](https://wpt.fyi/results/?sha=6146f4a506c1b7efaac68c9e8d552597212eabca&label=pr_base) ## Details ### Firefox-only Failures /html/browsers/sandboxing/sandbox-new-execution-context.html: ERROR ### New Tests That Don't Pass /html/browsers/sandboxing/sandbox-new-execution-context.html: ERROR (Chrome: OK, Safari: OK) iframe with sandbox should load with new execution context: NOTRUN (Chrome: FAIL, Safari: FAIL) """ # noqa: E501 assert message[1] is None