feat(sources): retire Yahoo and CNBC feeds (#42)

This commit is contained in:
2026-11-25 02:00:25 +01:00
parent 7a342f240d
commit 0503c2653f
41 changed files with 603 additions and 173 deletions

View File

@ -91,7 +91,7 @@ func TestGenerationUsesLayaHTTPContractThenSelectedSummaryModel(t *testing.T) {
t.Fatal(err)
}
modelID := "summary-model-user-a"
key := models.SourceYahooFinance
key := models.SourceBloomberg
feed := &ticket17HTTPScraper{}
summary := &ticket17HTTPSummary{}
resolver := &ticket17HTTPResolver{provider: summary}
@ -161,7 +161,7 @@ func TestGenerationLogsSanitizedLayaFailureCause(t *testing.T) {
t.Fatal(err)
}
modelID := "summary-model-user-a"
key := models.SourceYahooFinance
key := models.SourceBloomberg
feed := &ticket17HTTPScraper{articles: []scraper.Article{{Title: articleTitle, ContentState: scraper.ContentComplete, Content: articleBody, URL: articleURL}}}
summary := &ticket17HTTPSummary{}
repo := &ticket17HTTPRepo{input: generation.UserInput{SummaryModelID: &modelID, Language: "en", RankingMode: "title", GlobalLimit: 1, Assets: []models.UserAsset{{Name: "S&P 500", Symbol: "SPX"}}, Sources: []models.Source{{ID: "source-yahoo", Type: "yahoo", SourceKey: &key, Enabled: true, ArticleLimit: 5}}}}