diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-03-21 11:41:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 23:41:33 -0400 |
commit | dcaa5643d70cd1be72e53e82a30d2bc6e5f8de92 (patch) | |
tree | 55d98b7f1f8a24bf03d2be24b4c95f5e42e3b94b /integrations | |
parent | b3f4f812d818a860203d24dbf3f666a9557e0b7b (diff) | |
download | gitea-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.go | 2 |
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) { |