diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-06-17 00:49:45 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-17 12:49:45 +0800 |
commit | ce9b86082c4824917023b1bb480648d0cc56dd04 (patch) | |
tree | ba28673c955d009492557f54953857165e2f8da8 /integrations/api_team_test.go | |
parent | a3868ef5367315f52334b81819a412cad820f5eb (diff) | |
download | gitea-ce9b86082c4824917023b1bb480648d0cc56dd04.tar.gz gitea-ce9b86082c4824917023b1bb480648d0cc56dd04.zip |
Consolidate boilerplate in integration tests (#1979)
Diffstat (limited to 'integrations/api_team_test.go')
-rw-r--r-- | integrations/api_team_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/api_team_test.go b/integrations/api_team_test.go index 69198cd7eb..9103042042 100644 --- a/integrations/api_team_test.go +++ b/integrations/api_team_test.go @@ -23,7 +23,7 @@ func TestAPITeam(t *testing.T) { team := models.AssertExistsAndLoadBean(t, &models.Team{ID: teamUser.TeamID}).(*models.Team) user := models.AssertExistsAndLoadBean(t, &models.User{ID: teamUser.UID}).(*models.User) - session := loginUser(t, user.Name, "password") + session := loginUser(t, user.Name) url := fmt.Sprintf("/api/v1/teams/%d", teamUser.TeamID) req := NewRequest(t, "GET", url) resp := session.MakeRequest(t, req) |