@@ -129,8 +129,9 @@ async def test_ci_passed_with_awaiting_merge_label_pr_is_merged():
129
129
130
130
gh = FakeGH (getitem = getitem , getiter = getiter )
131
131
await status_change .router .dispatch (event , gh )
132
- expected_body = "Status check is done, and it's a success ✅."
133
- assert gh .post_data ["body" ] == expected_body
132
+ # Leave comment temporarily disabled when automerge not used. See #577.
133
+ # expected_body = "Status check is done, and it's a success ✅."
134
+ # assert gh.post_data["body"] == expected_body
134
135
assert gh .put_data ["sha" ] == sha # is merged
135
136
assert gh .put_data ["merge_method" ] == "squash"
136
137
assert (
@@ -197,8 +198,9 @@ async def test_ci_and_check_run_passed_with_no_awaiting_merge_label_pr_is_not_me
197
198
198
199
gh = FakeGH (getitem = getitem )
199
200
await status_change .router .dispatch (event , gh )
200
- expected_body = "Status check is done, and it's a success ✅."
201
- assert gh .post_data ["body" ] == expected_body
201
+ # Leave comment temporarily disabled when automerge not used. See #577.
202
+ # expected_body = "Status check is done, and it's a success ✅."
203
+ # assert gh.post_data["body"] == expected_body
202
204
assert not hasattr (gh , "put_data" ) # is not merged
203
205
204
206
@@ -254,8 +256,9 @@ async def test_ci_not_passed_awaiting_merge_label_pr_is_not_merged():
254
256
255
257
gh = FakeGH (getitem = getitem )
256
258
await status_change .router .dispatch (event , gh )
257
- expected_body = "@miss-islington and @Mariatta: Status check is done, and it's a failure ❌."
258
- assert gh .post_data ["body" ] == expected_body
259
+ # Leave comment temporarily disabled when automerge not used. See #577.
260
+ # expected_body = "@miss-islington and @Mariatta: Status check is done, and it's a failure ❌."
261
+ # assert gh.post_data["body"] == expected_body
259
262
assert not hasattr (gh , "put_data" ) # is not merged
260
263
261
264
@@ -323,8 +326,9 @@ async def test_ci_passed_and_check_run_failure_awaiting_merge_label_pr_is_not_me
323
326
324
327
gh = FakeGH (getitem = getitem , getiter = getiter )
325
328
await status_change .router .dispatch (event , gh )
326
- expected_body = "@miss-islington and @Mariatta: Status check is done, and it's a failure or timed out ❌."
327
- assert gh .post_data ["body" ] == expected_body
329
+ # Leave comment temporarily disabled when automerge not used. See #577.
330
+ # expected_body = "@miss-islington and @Mariatta: Status check is done, and it's a failure or timed out ❌."
331
+ # assert gh.post_data["body"] == expected_body
328
332
assert not hasattr (gh , "put_data" ) # is not merged
329
333
330
334
@@ -471,8 +475,9 @@ async def test_ci_passed_and_check_run_pending_awaiting_merge_label_pr_is_not_me
471
475
472
476
gh = FakeGH (getitem = getitem , getiter = getiter )
473
477
await status_change .router .dispatch (event , gh )
474
- expected_body = "@miss-islington and @Mariatta: Status check is done, and it's a failure or timed out ❌."
475
- assert gh .post_data ["body" ] == expected_body
478
+ # Leave comment temporarily disabled when automerge not used. See #577.
479
+ # expected_body = "@miss-islington and @Mariatta: Status check is done, and it's a failure or timed out ❌."
480
+ # assert gh.post_data["body"] == expected_body
476
481
assert not hasattr (gh , "put_data" ) # is not merged
477
482
478
483
@@ -540,9 +545,10 @@ async def test_ci_passed_and_check_run_timed_out_awaiting_merge_label_pr_is_not_
540
545
541
546
gh = FakeGH (getitem = getitem , getiter = getiter )
542
547
await status_change .router .dispatch (event , gh )
543
- expected_body = ("@miss-islington and @Mariatta: Status check is done, "
544
- "and it's a failure or timed out ❌." )
545
- assert gh .post_data ["body" ] == expected_body
548
+ # Leave comment temporarily disabled when automerge not used. See #577.
549
+ # expected_body = ("@miss-islington and @Mariatta: Status check is done, "
550
+ # "and it's a failure or timed out ❌.")
551
+ # assert gh.post_data["body"] == expected_body
546
552
assert not hasattr (gh , "put_data" ) # is not merged
547
553
548
554
0 commit comments