test(repo,release): fold the repo delete report into the --yes test and drop redundant setup

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-12 20:48:01 +02:00
1 parent b79845b9f3
commit aee57be8b9
3 files changed
+4 -17

No files matched your search

-2
View File
@@ -86,7 +86,6 @@ func TestRepoViewShowsStateAndReadme(t *testing.T) {
}))
defer server.Close()
deps, out, _ := repoTTYDeps(t, server.URL)
deps.Getenv = serverEnv(server.URL, map[string]string{"TERM": "dumb"})
rawMarkdown(t, deps)
require.NoError(t, Execute(context.Background(), deps, []string{"repo", "view", "bob/project", "--branch", "develop"}))
require.Equal(t, `bob/project
@@ -151,7 +150,6 @@ func TestRepoViewOfAnEmptyRepositorySkipsTheReadme(t *testing.T) {
}))
defer server.Close()
deps, out, _ := repoTTYDeps(t, server.URL)
deps.Getenv = serverEnv(server.URL, map[string]string{"TERM": "dumb"})
rawMarkdown(t, deps)
require.NoError(t, Execute(context.Background(), deps, []string{"repo", "view", "alice/empty"}))
require.Contains(t, out.String(), "private • empty • ★ 0")