summaryrefslogtreecommitdiffstats
path: root/models/pull_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-01-10 15:53:53 +0800
committerGitHub <noreply@github.com>2020-01-10 15:53:53 +0800
commit384c2b342ec01fadb520572666127cb5564e1050 (patch)
tree73357abe356721749e212b90049444cf279a97e4 /models/pull_test.go
parent8878cfa4a125348d92f8163988ac9d3279f27e75 (diff)
downloadgitea-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.go10
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)