Index: PRESUBMIT_test_mocks.py |
diff --git a/PRESUBMIT_test_mocks.py b/PRESUBMIT_test_mocks.py |
index c269deec1fba066392fd1252ab30fac2715e4ea5..726766bcf55e42d3b8afd7418a3574b77d67958d 100644 |
--- a/PRESUBMIT_test_mocks.py |
+++ b/PRESUBMIT_test_mocks.py |
@@ -27,6 +27,7 @@ class MockInputApi(object): |
self.files = [] |
self.is_committing = False |
self.change = MockChange([]) |
+ self.presubmitLocalPath = os.path.dirname(__file__) |
Dan Beam
2017/05/31 01:40:31
presubmit_local_path
|
def AffectedFiles(self, file_filter=None, include_deletes=False): |
return self.files |
@@ -38,7 +39,7 @@ class MockInputApi(object): |
return self.files |
def PresubmitLocalPath(self): |
- return os.path.dirname(__file__) |
+ return self.presubmitLocalPath |
def ReadFile(self, filename, mode='rU'): |
if hasattr(filename, 'AbsoluteLocalPath'): |