@@ -397,11 +397,11 @@ func TestRunCommentCommandPlan_NoProjectsTarget_SilenceEnabled(t *testing.T) {
397
397
vcsClient := setup (t )
398
398
planCommandRunner .SilenceNoProjects = true
399
399
var pull github.PullRequest
400
- modelPull := models.PullRequest {BaseRepo : fixtures .GithubRepo , State : models .OpenPullState }
401
- When (githubGetter .GetPullRequest (fixtures .GithubRepo , fixtures .Pull .Num )).ThenReturn (& pull , nil )
402
- When (eventParsing .ParseGithubPull (& pull )).ThenReturn (modelPull , modelPull .BaseRepo , fixtures .GithubRepo , nil )
400
+ modelPull := models.PullRequest {BaseRepo : testdata .GithubRepo , State : models .OpenPullState }
401
+ When (githubGetter .GetPullRequest (testdata .GithubRepo , testdata .Pull .Num )).ThenReturn (& pull , nil )
402
+ When (eventParsing .ParseGithubPull (& pull )).ThenReturn (modelPull , modelPull .BaseRepo , testdata .GithubRepo , nil )
403
403
404
- ch .RunCommentCommand (fixtures .GithubRepo , nil , nil , fixtures .User , fixtures .Pull .Num , & events.CommentCommand {Name : command .Plan , ProjectName : "meow" })
404
+ ch .RunCommentCommand (testdata .GithubRepo , nil , nil , testdata .User , testdata .Pull .Num , & events.CommentCommand {Name : command .Plan , ProjectName : "meow" })
405
405
vcsClient .VerifyWasCalled (Never ()).CreateComment (matchers .AnyModelsRepo (), AnyInt (), AnyString (), AnyString ())
406
406
commitUpdater .VerifyWasCalled (Never ()).UpdateCombinedCount (
407
407
matchers .AnyModelsRepo (),
@@ -473,11 +473,11 @@ func TestRunCommentCommandImport_NoProjects_SilenceEnabled(t *testing.T) {
473
473
vcsClient := setup (t )
474
474
importCommandRunner .SilenceNoProjects = true
475
475
var pull github.PullRequest
476
- modelPull := models.PullRequest {BaseRepo : fixtures .GithubRepo , State : models .OpenPullState }
477
- When (githubGetter .GetPullRequest (fixtures .GithubRepo , fixtures .Pull .Num )).ThenReturn (& pull , nil )
478
- When (eventParsing .ParseGithubPull (& pull )).ThenReturn (modelPull , modelPull .BaseRepo , fixtures .GithubRepo , nil )
476
+ modelPull := models.PullRequest {BaseRepo : testdata .GithubRepo , State : models .OpenPullState }
477
+ When (githubGetter .GetPullRequest (testdata .GithubRepo , testdata .Pull .Num )).ThenReturn (& pull , nil )
478
+ When (eventParsing .ParseGithubPull (& pull )).ThenReturn (modelPull , modelPull .BaseRepo , testdata .GithubRepo , nil )
479
479
480
- ch .RunCommentCommand (fixtures .GithubRepo , nil , nil , fixtures .User , fixtures .Pull .Num , & events.CommentCommand {Name : command .Import })
480
+ ch .RunCommentCommand (testdata .GithubRepo , nil , nil , testdata .User , testdata .Pull .Num , & events.CommentCommand {Name : command .Import })
481
481
vcsClient .VerifyWasCalled (Never ()).CreateComment (matchers .AnyModelsRepo (), AnyInt (), AnyString (), AnyString ())
482
482
}
483
483
0 commit comments