diff options
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) |