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

Unified Diff: PRESUBMIT_test_mocks.py

Issue 2917473002: js_checker.py: Restore smoke tests for linting violations. (Closed)
Patch Set: Address comments. Created 3 years, 7 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 | « no previous file | tools/web_dev_style/js_checker.py » ('j') | tools/web_dev_style/js_checker_eslint_test.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'):
« no previous file with comments | « no previous file | tools/web_dev_style/js_checker.py » ('j') | tools/web_dev_style/js_checker_eslint_test.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698