fix: show latest discover posters

This commit is contained in:
ShukeBta
2026-06-24 20:17:38 +08:00
parent e5b5ecce93
commit a7c8d46589
7 changed files with 103 additions and 12 deletions
+13
View File
@@ -65,3 +65,16 @@ func TestDefaultDiscoverSectionKeysSkipDisabledProviders(t *testing.T) {
t.Fatal("default keys should keep enabled providers")
}
}
func TestDefaultDiscoverSectionKeysIncludeLatestTMDbRails(t *testing.T) {
keys := defaultDiscoverSectionKeys(t.Context(), &service.Container{})
keySet := map[string]struct{}{}
for _, key := range keys {
keySet[key] = struct{}{}
}
for _, key := range []string{"tmdb_latest_movie", "tmdb_latest_tv"} {
if _, ok := keySet[key]; !ok {
t.Fatalf("default discover keys should include %q: %v", key, keys)
}
}
}