diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-10 15:53:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-10 15:53:53 +0800 |
commit | 384c2b342ec01fadb520572666127cb5564e1050 (patch) | |
tree | 73357abe356721749e212b90049444cf279a97e4 /models/pull_test.go | |
parent | 8878cfa4a125348d92f8163988ac9d3279f27e75 (diff) | |
download | gitea-384c2b342ec01fadb520572666127cb5564e1050.tar.gz gitea-384c2b342ec01fadb520572666127cb5564e1050.zip |
Move pull request api convert to convert package (#9664)
* Move pull request api convert to convert package
* Rename ToPullRequest to ToAPIPullRequest
Diffstat (limited to 'models/pull_test.go')
-rw-r--r-- | models/pull_test.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/models/pull_test.go b/models/pull_test.go index 153739f540..9c27b603aa 100644 --- a/models/pull_test.go +++ b/models/pull_test.go @@ -29,16 +29,6 @@ func TestPullRequest_LoadIssue(t *testing.T) { assert.Equal(t, int64(2), pr.Issue.ID) } -func TestPullRequest_APIFormat(t *testing.T) { - assert.NoError(t, PrepareTestDatabase()) - pr := AssertExistsAndLoadBean(t, &PullRequest{ID: 1}).(*PullRequest) - assert.NoError(t, pr.LoadAttributes()) - assert.NoError(t, pr.LoadIssue()) - apiPullRequest := pr.APIFormat() - assert.NotNil(t, apiPullRequest) - assert.Nil(t, apiPullRequest.Head) -} - func TestPullRequest_GetBaseRepo(t *testing.T) { assert.NoError(t, PrepareTestDatabase()) pr := AssertExistsAndLoadBean(t, &PullRequest{ID: 1}).(*PullRequest) |