20 lines
426 B
Go
20 lines
426 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"go.uber.org/mock/gomock"
|
|
"src.opensuse.org/autogits/common/gitea-generated/models"
|
|
mock_main "src.opensuse.org/workflow-pr/mock"
|
|
)
|
|
|
|
func TestPR(t *testing.T) {
|
|
t.Run("Test simple PR to PrjGit checkout", func(t *testing.T) {
|
|
ctl := gomock.NewController(t)
|
|
pr := mock_main.NewMockGiteaPRInterface(ctl)
|
|
|
|
pr.EXPECT().GetPR("foo", "bar", 22).Return(&models.PullRequest{}, nil)
|
|
})
|
|
}
|
|
|