// Copyright 2026 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package app import ( "bytes" "testing" ) // repoTTYDeps returns serverDeps for a 100-column terminal without color or links, as people read tea's output. func repoTTYDeps(t *testing.T, serverURL string) (Dependencies, *bytes.Buffer, *bytes.Buffer) { t.Helper() deps, out, diagnostics := serverDeps(t, serverURL) deps.Getenv = serverEnv(serverURL, map[string]string{"TERM": "dumb"}) deps.Streams.OutTTY, deps.Streams.Width = true, 100 return deps, out, diagnostics }