feat(sources): retire Yahoo and CNBC feeds (#42)
This commit is contained in:
@ -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}}}}
|
||||
|
||||
Reference in New Issue
Block a user