mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-13 13:50:33 +05:30
Failing test works locally without any problems. Reformatted it a bit.
This commit is contained in:
parent
bf3ae5e679
commit
d6586da614
@ -254,15 +254,14 @@ public class YoutubeSearchExtractorTest {
|
|||||||
@Override public String expectedSearchString() { return QUERY; }
|
@Override public String expectedSearchString() { return QUERY; }
|
||||||
@Override public String expectedSearchSuggestion() { return null; }
|
@Override public String expectedSearchSuggestion() { return null; }
|
||||||
@Override public List<MetaInfo> expectedMetaInfo() throws MalformedURLException {
|
@Override public List<MetaInfo> expectedMetaInfo() throws MalformedURLException {
|
||||||
final List<URL> urls = new ArrayList<>();
|
|
||||||
urls.add(new URL("https://www.who.int/emergencies/diseases/novel-coronavirus-2019"));
|
|
||||||
final List<String> urlTexts = new ArrayList<>();
|
|
||||||
urlTexts.add("LEARN MORE");
|
|
||||||
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(
|
||||||
urls,
|
"Get the latest information from the WHO about coronavirus.",
|
||||||
urlTexts
|
Description.PLAIN_TEXT),
|
||||||
|
Collections.singletonList(
|
||||||
|
new URL("https://www.who.int/emergencies/diseases/novel-coronavirus-2019")),
|
||||||
|
Collections.singletonList("LEARN MORE")
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
// testMoreRelatedItems is broken because a video has no duration shown
|
// testMoreRelatedItems is broken because a video has no duration shown
|
||||||
|
Loading…
Reference in New Issue
Block a user