From e4a1a6ecd8a9fec080fb0a5a87f27197b09d3276 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Sun, 3 Nov 2024 20:10:51 +0100 Subject: [PATCH] Fix tests --- .../services/youtube/YoutubeChannelExtractorTest.java | 3 +-- .../youtube/stream/YoutubeStreamExtractorLivestreamTest.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractorTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractorTest.java index 9499a1150b..0f4115e95a 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractorTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractorTest.java @@ -232,8 +232,7 @@ public void testVerified() throws Exception { @Test @Override public void testTabs() throws Exception { - assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, - ChannelTabs.LIVESTREAMS, ChannelTabs.PLAYLISTS); + assertTabsContain(extractor.getTabs(), ChannelTabs.VIDEOS, ChannelTabs.PLAYLISTS); assertTrue(extractor.getTabs().stream() .filter(it -> ChannelTabs.VIDEOS.equals(it.getContentFilters().get(0))) .allMatch(ReadyChannelTabListLinkHandler.class::isInstance)); diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java index f2c8a01cb6..e5d1494a0f 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/stream/YoutubeStreamExtractorLivestreamTest.java @@ -40,7 +40,7 @@ public void testUploaderName() throws Exception { @Override public StreamExtractor extractor() { return extractor; } @Override public StreamingService expectedService() { return YouTube; } - @Override public String expectedName() { return "lofi hip hop radio \uD83D\uDCDA - beats to relax/study to"; } + @Override public String expectedName() { return "lofi hip hop radio \uD83D\uDCDA beats to relax/study to"; } @Override public String expectedId() { return ID; } @Override public String expectedUrlContains() { return YoutubeStreamExtractorDefaultTest.BASE_URL + ID; } @Override public String expectedOriginalUrlContains() { return URL; }