mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-04 02:48:29 +02:00
Fix test
This commit is contained in:
@ -89,8 +89,9 @@ var CmdRepoCreate = cli.Command{
|
|||||||
Usage: "select trust model (committer,collaborator,collaborator+committer)",
|
Usage: "select trust model (committer,collaborator,collaborator+committer)",
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
&cli.StringFlag{
|
||||||
Name: "object-format",
|
Name: "object-format",
|
||||||
Usage: "select git object format (sha1,sha256)",
|
Required: false,
|
||||||
|
Usage: "select git object format (sha1,sha256)",
|
||||||
},
|
},
|
||||||
}, flags.LoginOutputFlags...),
|
}, flags.LoginOutputFlags...),
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ func TestCreateRepoObjectFormat(t *testing.T) {
|
|||||||
Aliases: []string{"repo"},
|
Aliases: []string{"repo"},
|
||||||
Commands: []*cli.Command{&CmdRepoCreate},
|
Commands: []*cli.Command{&CmdRepoCreate},
|
||||||
}
|
}
|
||||||
args := append([]string{"tea", "repos", "create"}, tt.args...)
|
args := append([]string{"repos", "create"}, tt.args...)
|
||||||
|
|
||||||
err := reposCmd.Run(context.Background(), args)
|
err := reposCmd.Run(context.Background(), args)
|
||||||
if tt.wantErr {
|
if tt.wantErr {
|
||||||
|
Reference in New Issue
Block a user