summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-03-21 11:41:33 +0800
committerGitHub <noreply@github.com>2020-03-20 23:41:33 -0400
commitdcaa5643d70cd1be72e53e82a30d2bc6e5f8de92 (patch)
tree55d98b7f1f8a24bf03d2be24b4c95f5e42e3b94b /integrations
parentb3f4f812d818a860203d24dbf3f666a9557e0b7b (diff)
downloadgitea-dcaa5643d70cd1be72e53e82a30d2bc6e5f8de92.tar.gz
gitea-dcaa5643d70cd1be72e53e82a30d2bc6e5f8de92.zip
Fix branch api canPush and canMerge (#10776)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'integrations')
-rw-r--r--integrations/api_branch_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/integrations/api_branch_test.go b/integrations/api_branch_test.go
index 3fe7f23229..b6452a6ab4 100644
--- a/integrations/api_branch_test.go
+++ b/integrations/api_branch_test.go
@@ -28,6 +28,8 @@ func testAPIGetBranch(t *testing.T, branchName string, exists bool) {
var branch api.Branch
DecodeJSON(t, resp, &branch)
assert.EqualValues(t, branchName, branch.Name)
+ assert.True(t, branch.UserCanPush)
+ assert.True(t, branch.UserCanMerge)
}
func testAPIGetBranchProtection(t *testing.T, branchName string, expectedHTTPStatus int) {