Files
nilsandClaude Opus 5.5 1056846a48 Keep posters and casts between runs
Posters (the downloaded bytes, per size, 30 days, at most 200 MB) and
casts (people.json, 7 days, at most 2000) are stored in the user's cache
directory (os.UserCacheDir()/arr-tui) and used on the next start before
asking the servers. Expired posters are pruned at startup, casts are
written shortly after new ones arrive and on exit. Tests turn the cache
off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 10:35:02 +02:00

15 lines
372 B
Go

package ui
import (
"os"
"testing"
)
// TestMain keeps the tests from asking the real terminal about graphics
// support and its colors (the probe writes to and reads from /dev/tty).
func TestMain(m *testing.M) {
terminalAnswers = func() terminalInfo { return terminalInfo{} }
cacheDirFunc = func() string { return "" } // never the user's cache
os.Exit(m.Run())
}