mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-04 10:58:29 +02:00
Fix test
This commit is contained in:
@ -57,14 +57,14 @@ func TestCreateRepoObjectFormat(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loginAddCmd := &cli.Command{
|
loginAddCmd := &cli.Command{
|
||||||
Name: "add",
|
Name: "login",
|
||||||
Commands: []*cli.Command{
|
Commands: []*cli.Command{
|
||||||
&login.CmdLoginAdd,
|
&login.CmdLoginAdd,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
giteaUserName := os.Getenv("GITEA_TEA_TEST_USERNAME")
|
giteaUserName := os.Getenv("GITEA_TEA_TEST_USERNAME")
|
||||||
giteaUserPasword := os.Getenv("GITEA_TEA_TEST_PASSWORD")
|
giteaUserPasword := os.Getenv("GITEA_TEA_TEST_PASSWORD")
|
||||||
args := []string{"add", "--name", "test-login", "--url", giteaURL, "--user", giteaUserName, "--password", giteaUserPasword}
|
args := []string{"login", "add", "--name", "test-login", "--url", giteaURL, "--user", giteaUserName, "--password", giteaUserPasword}
|
||||||
err := loginAddCmd.Run(context.Background(), args)
|
err := loginAddCmd.Run(context.Background(), args)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user