mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
test(app): drop completion and table cases other tests already cover
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
4 files changed
+2
-36
No files matched your search
@@ -161,7 +161,6 @@ func TestOfflineCompletions(t *testing.T) {
|
||||
"for-each-ref --format=%(refname:short) refs/heads": "main\nfeature/login\n",
|
||||
}}
|
||||
configureAccounts(t, deps, "https://gitea.example.com", "alice", "alice", "bob")
|
||||
require.NoError(t, Execute(context.Background(), deps, []string{"alias", "set", "co", "pr checkout"}))
|
||||
for args, want := range map[string][]string{
|
||||
"--host ": {"https://gitea.example.com\talice, bob"},
|
||||
"--user ": {"alice\thttps://gitea.example.com (active)", "bob\thttps://gitea.example.com"},
|
||||
@@ -180,9 +179,6 @@ func TestOfflineCompletions(t *testing.T) {
|
||||
prefix string
|
||||
want []string
|
||||
}{
|
||||
{a.completeAliases, nil, "", []string{"co\tpr checkout"}},
|
||||
{a.completeConfig, nil, "git", []string{"git_protocol"}},
|
||||
{a.completeConfig, []string{"color"}, "a", []string{"auto", "always"}},
|
||||
{a.completeConfig, []string{"default_host"}, "", []string{"https://gitea.example.com\talice, bob"}},
|
||||
{a.completeConfig, []string{"color", "auto"}, "", []string{}},
|
||||
{a.completeLocalBranches, nil, "f", []string{"feature/login\tlocal branch"}},
|
||||
|
||||
Reference in new issue
Block a user