@ -192,14 +192,15 @@ class ChangeInfoUnittest(GclTestsBase):
self . mox . ReplayAll ( )
self . mox . ReplayAll ( )
members = [
members = [
' AddComment ' , ' CloseIssue ' , ' Delete ' , ' Exists ' , ' GetFiles ' ,
' AddComment ' , ' CloseIssue ' , ' Delete ' , ' Exists ' , ' GetFiles ' ,
' GetFileNames ' , ' GetLocalRoot ' , ' GetIssueDescription ' , ' Load ' ,
' GetApprovingReviewers ' , ' GetFileNames ' , ' GetIssueDescription ' ,
' GetLocalRoot ' , ' Load ' ,
' MissingTests ' , ' NeedsUpload ' , ' PrimeLint ' , ' RpcServer ' , ' Save ' ,
' MissingTests ' , ' NeedsUpload ' , ' PrimeLint ' , ' RpcServer ' , ' Save ' ,
' SendToRietveld ' ,
' SendToRietveld ' ,
' SEPARATOR ' ,
' SEPARATOR ' ,
' UpdateDescriptionFromIssue ' , ' UpdateRietveldDescription ' ,
' UpdateDescriptionFromIssue ' , ' UpdateRietveldDescription ' ,
' append_footer ' ,
' append_footer ' ,
' description ' , ' force_description ' , ' get_reviewers ' , ' issue ' , ' name ' ,
' description ' , ' force_description ' , ' get_reviewers ' , ' issue ' , ' name ' ,
' needs_upload ' , ' patch ' , ' patchset ' , ' rietveld ' ,
' needs_upload ' , ' patch ' , ' patchset ' , ' rietveld ' , ' update_reviewers ' ,
]
]
# If this test fails, you should add the relevant test.
# If this test fails, you should add the relevant test.
self . compareMembers (
self . compareMembers (
@ -576,6 +577,8 @@ class CMDCommitUnittest(GclTestsBase):
self . mockCommit (
self . mockCommit (
change_info , ' deescription \n \n Review URL: https://my_server/1 ' , ' ' )
change_info , ' deescription \n \n Review URL: https://my_server/1 ' , ' ' )
change_info . UpdateDescriptionFromIssue ( )
change_info . UpdateDescriptionFromIssue ( )
change_info . GetApprovingReviewers ( ) . AndReturn ( [ ' a@c ' ] )
change_info . update_reviewers ( [ ' a@c ' ] )
self . mox . ReplayAll ( )
self . mox . ReplayAll ( )
retval = gcl . CMDcommit ( [ ' naame ' ] )
retval = gcl . CMDcommit ( [ ' naame ' ] )
@ -594,6 +597,8 @@ class CMDCommitUnittest(GclTestsBase):
' deescription \n \n Review URL: https://my_server/1 ' ,
' deescription \n \n Review URL: https://my_server/1 ' ,
' \n Committed revision 12345 ' )
' \n Committed revision 12345 ' )
change_info . UpdateDescriptionFromIssue ( )
change_info . UpdateDescriptionFromIssue ( )
change_info . GetApprovingReviewers ( ) . AndReturn ( [ ' a@c ' ] )
change_info . update_reviewers ( [ ' a@c ' ] )
change_info . append_footer ( ' Committed: http://view/12345 ' )
change_info . append_footer ( ' Committed: http://view/12345 ' )
self . mox . ReplayAll ( )
self . mox . ReplayAll ( )