|
|
|
|
@ -1190,17 +1190,58 @@ class InputApiUnittest(PresubmitTestsBase):
|
|
|
|
|
def testMembersChanged(self):
|
|
|
|
|
self.mox.ReplayAll()
|
|
|
|
|
members = [
|
|
|
|
|
'AbsoluteLocalPaths', 'AffectedFiles', 'AffectedSourceFiles',
|
|
|
|
|
'AffectedTextFiles', 'DEFAULT_BLACK_LIST', 'DEFAULT_WHITE_LIST',
|
|
|
|
|
'DepotToLocalPath', 'FilterSourceFile', 'LocalPaths', 'LocalToDepotPath',
|
|
|
|
|
'Command', 'RunTests', 'PresubmitLocalPath', 'ReadFile',
|
|
|
|
|
'RightHandSideLines', 'ServerPaths', 'basename', 'cPickle', 'cpplint',
|
|
|
|
|
'cStringIO', 'canned_checks', 'change', 'cpu_count', 'environ', 'glob',
|
|
|
|
|
'host_url', 'is_committing', 'json', 'logging', 'marshal', 'os_listdir',
|
|
|
|
|
'os_walk', 'os_path', 'os_stat', 'owners_db', 'pickle', 'platform',
|
|
|
|
|
'python_executable', 're', 'rietveld', 'subprocess', 'tbr', 'tempfile',
|
|
|
|
|
'time', 'traceback', 'unittest', 'urllib2', 'version', 'verbose',
|
|
|
|
|
'dry_run', 'gerrit',
|
|
|
|
|
'AbsoluteLocalPaths',
|
|
|
|
|
'AffectedFiles',
|
|
|
|
|
'AffectedSourceFiles',
|
|
|
|
|
'AffectedTextFiles',
|
|
|
|
|
'DEFAULT_BLACK_LIST',
|
|
|
|
|
'DEFAULT_WHITE_LIST',
|
|
|
|
|
'DepotToLocalPath',
|
|
|
|
|
'FilterSourceFile',
|
|
|
|
|
'LocalPaths',
|
|
|
|
|
'LocalToDepotPath',
|
|
|
|
|
'Command',
|
|
|
|
|
'RunTests',
|
|
|
|
|
'PresubmitLocalPath',
|
|
|
|
|
'ReadFile',
|
|
|
|
|
'RightHandSideLines',
|
|
|
|
|
'ServerPaths',
|
|
|
|
|
'basename',
|
|
|
|
|
'cPickle',
|
|
|
|
|
'cpplint',
|
|
|
|
|
'cStringIO',
|
|
|
|
|
'canned_checks',
|
|
|
|
|
'change',
|
|
|
|
|
'cpu_count',
|
|
|
|
|
'environ',
|
|
|
|
|
'fnmatch',
|
|
|
|
|
'glob',
|
|
|
|
|
'host_url',
|
|
|
|
|
'is_committing',
|
|
|
|
|
'json',
|
|
|
|
|
'logging',
|
|
|
|
|
'marshal',
|
|
|
|
|
'os_listdir',
|
|
|
|
|
'os_walk',
|
|
|
|
|
'os_path',
|
|
|
|
|
'os_stat',
|
|
|
|
|
'owners_db',
|
|
|
|
|
'pickle',
|
|
|
|
|
'platform',
|
|
|
|
|
'python_executable',
|
|
|
|
|
're',
|
|
|
|
|
'rietveld',
|
|
|
|
|
'subprocess',
|
|
|
|
|
'tbr',
|
|
|
|
|
'tempfile',
|
|
|
|
|
'time',
|
|
|
|
|
'traceback',
|
|
|
|
|
'unittest',
|
|
|
|
|
'urllib2',
|
|
|
|
|
'version',
|
|
|
|
|
'verbose',
|
|
|
|
|
'dry_run',
|
|
|
|
|
'gerrit',
|
|
|
|
|
]
|
|
|
|
|
# If this test fails, you should add the relevant test.
|
|
|
|
|
self.compareMembers(
|
|
|
|
|
@ -2735,7 +2776,7 @@ class CannedChecksUnittest(PresubmitTestsBase):
|
|
|
|
|
"sender": "ben@example.com", "text": "foo", "approval": False,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
"reviewers":[],
|
|
|
|
|
"reviewers": [],
|
|
|
|
|
}
|
|
|
|
|
self.AssertOwnersWorks(
|
|
|
|
|
approvers=set(),
|
|
|
|
|
|