summaryrefslogtreecommitdiffstats
path: root/models/pull_test.go
diff options
context:
space:
mode:
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)