Merge pull request #630 from XiangRongLin/fix_tests

Fix MetaInfoTest.expectedMetaInfo
This commit is contained in:
Tobi 2021-05-28 14:16:53 +02:00 committed by GitHub
commit 519bba70b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 404 additions and 397 deletions

View file

@ -263,10 +263,8 @@ public class YoutubeSearchExtractorTest {
@Override public List<MetaInfo> expectedMetaInfo() throws MalformedURLException { @Override public List<MetaInfo> expectedMetaInfo() throws MalformedURLException {
final List<URL> urls = new ArrayList<>(); final List<URL> urls = new ArrayList<>();
urls.add(new URL("https://www.who.int/emergencies/diseases/novel-coronavirus-2019")); urls.add(new URL("https://www.who.int/emergencies/diseases/novel-coronavirus-2019"));
urls.add(new URL("https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines"));
final List<String> urlTexts = new ArrayList<>(); final List<String> urlTexts = new ArrayList<>();
urlTexts.add("LEARN MORE"); urlTexts.add("LEARN MORE");
urlTexts.add("Learn about vaccine progress from the WHO");
return Collections.singletonList(new MetaInfo( return Collections.singletonList(new MetaInfo(
"COVID-19", "COVID-19",
new Description("Get the latest information from the WHO about coronavirus.", Description.PLAIN_TEXT), new Description("Get the latest information from the WHO about coronavirus.", Description.PLAIN_TEXT),