* Fix bug on branch API (#10767) * Fix branch api canPush and canMerge
This commit is contained in:
parent
e2da9cd21f
commit
602fe45936
4 changed files with 60 additions and 9 deletions
|
@ -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 TestAPIGetBranch(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue