Add repo scope to TestAPIRepoTeams
This commit is contained in:
parent
0a837e7e88
commit
a44f62e262
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ func TestAPIRepoTeams(t *testing.T) {
|
|||
// user4
|
||||
user := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 4})
|
||||
session := loginUser(t, user.Name)
|
||||
token := getTokenForLoggedInUser(t, session)
|
||||
token := getTokenForLoggedInUser(t, session, "repo")
|
||||
|
||||
// ListTeams
|
||||
url := fmt.Sprintf("/api/v1/repos/%s/teams?token=%s", publicOrgRepo.FullName(), token)
|
||||
|
|
Loading…
Add table
Reference in a new issue