8181 "invalid-author" : {
8282 "number" : 10786 ,
8383 "filename" : "pr10786-invalid-author.json" ,
84- "expected" : "Comment is not from from PR author or collaborator , quitting" ,
84+ "expected" : "Failed auth check 'collaborators' , quitting" ,
8585 "comment" : "@tvm-bot merge" ,
8686 "user" : "not-abc" ,
8787 "detail" : "Merge requester is not a committer and cannot merge" ,
8888 },
8989 "unauthorized-comment" : {
9090 "number" : 11244 ,
9191 "filename" : "pr11244-unauthorized-comment.json" ,
92- "expected" : "Comment is not from from PR author or collaborator, quitting " ,
92+ "expected" : "Failed auth check 'collaborators' " ,
9393 "comment" : "@tvm-bot merge" ,
9494 "user" : "not-abc2" ,
9595 "detail" : "Check that a merge comment not from a CONTRIBUTOR is rejected" ,
135135 [tuple (d .values ()) for d in TEST_DATA .values ()],
136136 ids = TEST_DATA .keys (),
137137)
138- def test_mergebot (tmpdir_factory , number , filename , expected , comment , user , detail ):
138+ def test_tvmbot (tmpdir_factory , number , filename , expected , comment , user , detail ):
139139 """
140140 Test the mergebot test cases
141141 """
@@ -156,7 +156,7 @@ def test_mergebot(tmpdir_factory, number, filename, expected, comment, user, det
156156 "login" : user ,
157157 },
158158 }
159- collaborators = []
159+ collaborators = ["abc" ]
160160
161161 proc = subprocess .run (
162162 [
@@ -170,6 +170,8 @@ def test_mergebot(tmpdir_factory, number, filename, expected, comment, user, det
170170 json .dumps (test_data ),
171171 "--testing-collaborators-json" ,
172172 json .dumps (collaborators ),
173+ "--testing-mentionable-users-json" ,
174+ json .dumps (collaborators ),
173175 "--trigger-comment-json" ,
174176 json .dumps (comment ),
175177 ],
@@ -178,6 +180,7 @@ def test_mergebot(tmpdir_factory, number, filename, expected, comment, user, det
178180 encoding = "utf-8" ,
179181 env = {
180182 "TVM_BOT_JENKINS_TOKEN" : "123" ,
183+ "GH_ACTIONS_TOKEN" : "123" ,
181184 },
182185 cwd = git .cwd ,
183186 check = False ,
0 commit comments