This commit is contained in:
Lunny Xiao
2025-08-11 19:54:10 -07:00
parent 0a026ff6e2
commit ef01274338

View File

@ -57,14 +57,14 @@ func TestCreateRepoObjectFormat(t *testing.T) {
}
loginAddCmd := &cli.Command{
Name: "add",
Name: "login",
Commands: []*cli.Command{
&login.CmdLoginAdd,
},
}
giteaUserName := os.Getenv("GITEA_TEA_TEST_USERNAME")
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)
assert.NoError(t, err)