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

Unified Diff: build/android/pylib/host_driven/test_info_collection.py

Issue 159853010: [Android] Lint pylib/host_driven. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 | « build/android/pylib/host_driven/test_case.py ('k') | build/android/pylib/host_driven/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/host_driven/test_info_collection.py
diff --git a/build/android/pylib/host_driven/test_info_collection.py b/build/android/pylib/host_driven/test_info_collection.py
index a857d3c1cdf2e63b92c3f62cda2d860f85517732..b0b76a9819881bca3fbe2e209372fd393ed2a747 100644
--- a/build/android/pylib/host_driven/test_info_collection.py
+++ b/build/android/pylib/host_driven/test_info_collection.py
@@ -7,7 +7,7 @@
import logging
import os
-import tests_annotations
+from pylib.host_driven import tests_annotations
class TestInfo(object):
@@ -22,7 +22,8 @@ class TestInfo(object):
self.set_up = set_up
self.tear_down = tear_down
- def _GetQualifiedName(self, runnable):
+ @staticmethod
+ def _GetQualifiedName(runnable):
"""Helper method to infer a runnable's name and module name.
Many filters and lists presuppose a format of module_name.testMethodName.
@@ -102,7 +103,8 @@ class TestInfoCollection(object):
return available_tests
- def _AnnotationIncludesTest(self, test_info, annotation_filter_list):
+ @staticmethod
+ def _AnnotationIncludesTest(test_info, annotation_filter_list):
"""Checks whether a given test represented by test_info matches annotation.
Args:
@@ -128,7 +130,8 @@ class TestInfoCollection(object):
return True
return False
- def _NameFilterIncludesTest(self, test_info, name_filter):
+ @staticmethod
+ def _NameFilterIncludesTest(test_info, name_filter):
"""Checks whether a name filter matches a given test_info's method name.
This is a case-sensitive, substring comparison: 'Foo' will match methods
« no previous file with comments | « build/android/pylib/host_driven/test_case.py ('k') | build/android/pylib/host_driven/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698