Index: PRESUBMIT_test_mocks.py |
diff --git a/PRESUBMIT_test_mocks.py b/PRESUBMIT_test_mocks.py |
index 373b52c6d3c68643cfe0622f1a622d1098dca7f8..5230c8721073592e17f0479f20da23ac32091f3c 100644 |
--- a/PRESUBMIT_test_mocks.py |
+++ b/PRESUBMIT_test_mocks.py |
@@ -26,7 +26,7 @@ |
self.is_committing = False |
self.change = MockChange([]) |
- def AffectedFiles(self, file_filter=None, include_deletes=False): |
+ def AffectedFiles(self, file_filter=None): |
return self.files |
def AffectedSourceFiles(self, file_filter=None): |
@@ -92,14 +92,13 @@ |
MockInputApi for presubmit unittests. |
""" |
- def __init__(self, local_path, new_contents, action='A'): |
+ def __init__(self, local_path, new_contents): |
self._local_path = local_path |
self._new_contents = new_contents |
self._changed_contents = [(i + 1, l) for i, l in enumerate(new_contents)] |
- self._action = action |
def Action(self): |
- return self._action |
+ return 'A' # TODO(dbeam): feel free to change if your test actually uses. |
def ChangedContents(self): |
return self._changed_contents |