Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Unified Diff: tests/mocks.py

Issue 23483019: Changes to support One-Click Revert in Commit Queue (Closed) Base URL: https://src.chromium.org/chrome/trunk/tools/commit-queue/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/committer_revert_test.py ('k') | tests/pending_manager_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/mocks.py
===================================================================
--- tests/mocks.py (revision 220012)
+++ tests/mocks.py (working copy)
@@ -86,6 +86,9 @@
def get_pending_issues(self):
return self.issues.keys()
+ def get_revert_issues(self):
+ return self.issues.keys()
+
def get_issue_properties(self, issue_id, _):
return copy.deepcopy(self.issues[issue_id])
@@ -98,6 +101,9 @@
def close_issue(self, *args, **kwargs):
self._register_call(*args, **kwargs)
+ def open_issue(self, *args, **kwargs):
+ self._register_call(*args, **kwargs)
+
def update_description(self, *args, **kwargs):
self._register_call(*args, **kwargs)
@@ -142,8 +148,8 @@
# prepare() should always return a valid revision.
return revision or 124
- def apply_patch(self, *args):
- self._register_call(*args)
+ def apply_patch(self, *args, **kwargs):
+ self._register_call(*args, **kwargs)
def commit(self, *args):
self._register_call(*args)
« no previous file with comments | « tests/committer_revert_test.py ('k') | tests/pending_manager_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698