| Index: tests/pending_manager_test.py
|
| diff --git a/tests/pending_manager_test.py b/tests/pending_manager_test.py
|
| index 12f73d489555008f213fa6593fd4c3888ccc360b..0407eae52bc6790daa4e402d2cd11a3c3571c3cc 100755
|
| --- a/tests/pending_manager_test.py
|
| +++ b/tests/pending_manager_test.py
|
| @@ -114,7 +114,7 @@
|
| self.context.rietveld.check_calls(
|
| [ _try_comment(),
|
| "set_flag(%d, 1, 'commit', False)" % issue,
|
| - "add_comment(%d, %r)" % (issue, fake.failed_message())])
|
| + "add_comment(%d, %r)" % (issue, pc.FAILED_NO_MESSAGE)])
|
| else:
|
| if success:
|
| self.context.checkout.check_calls(
|
| @@ -131,11 +131,11 @@
|
| self.context.rietveld.check_calls(
|
| [ _try_comment(),
|
| "set_flag(%d, 1, 'commit', False)" % issue,
|
| - "add_comment(%d, %r)" % (issue, fake.failed_message())])
|
| + "add_comment(%d, %r)" % (issue, pc.FAILED_NO_MESSAGE)])
|
| else:
|
| self.context.rietveld.check_calls(
|
| [ "set_flag(%d, 1, 'commit', False)" % issue,
|
| - "add_comment(%d, %r)" % (issue, fake.failed_message())])
|
| + "add_comment(%d, %r)" % (issue, pc.FAILED_NO_MESSAGE)])
|
|
|
| def _prepare_apply_commit(self, index, issue, server_hooks_missing=False):
|
| """Returns a frequent sequence of action happening on the Checkout object.
|
| @@ -265,7 +265,7 @@
|
| ])
|
| self.context.rietveld.check_calls(
|
| [ _try_comment(),
|
| - "add_comment(%d, %r)" % (issue, fake.failed_message()),
|
| + "add_comment(%d, %r)" % (issue, pc.FAILED_NO_MESSAGE),
|
| ])
|
| self.context.status.check_names(['initial', 'abort'])
|
|
|
| @@ -571,7 +571,7 @@
|
| self.context.checkout.check_calls(
|
| self._prepare_apply_commit(0, issue, server_hooks_missing=True))
|
|
|
| - def testDisappeared(self):
|
| + def testDisapeared(self):
|
| issue = 31337
|
| verifiers = [
|
| project_base.ProjectBaseUrlVerifier(
|
| @@ -591,8 +591,6 @@
|
| pc.scan_results()
|
| self.assertEqual(0, len(pc.queue.iterate()))
|
| self.context.status.check_names(['abort'])
|
| - self.context.rietveld.check_calls(
|
| - ["add_comment(%d, 'CQ bit was unchecked on CL. Ignoring.')" % issue])
|
|
|
| def _get_pc_reviewer(self):
|
| verifiers = [
|
|
|