Skip to content

Commit c6b335c

Browse files
committed
Fix peertube tests
1 parent e06fac6 commit c6b335c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/peertube/PeertubeAccountTabExtractorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static void setUp() throws Exception {
3535

3636
@Override public ChannelTabExtractor extractor() throws Exception { return extractor; }
3737
@Override public StreamingService expectedService() throws Exception { return PeerTube; }
38-
@Override public String expectedName() throws Exception { return ChannelTabs.VIDEOS; }
38+
@Override public String expectedName() throws Exception { return ChannelTabs.VIDEOS.getNameId().name(); }
3939
@Override public String expectedId() throws Exception { return "accounts/framasoft"; }
4040
@Override public String expectedUrlContains() throws Exception { return "https://framatube.org/accounts/framasoft/videos"; }
4141
@Override public String expectedOriginalUrlContains() throws Exception { return "https://framatube.org/accounts/framasoft/videos"; }
@@ -58,7 +58,7 @@ static void setUp() throws Exception {
5858

5959
@Override public ChannelTabExtractor extractor() throws Exception { return extractor; }
6060
@Override public StreamingService expectedService() throws Exception { return PeerTube; }
61-
@Override public String expectedName() throws Exception { return ChannelTabs.CHANNELS; }
61+
@Override public String expectedName() throws Exception { return ChannelTabs.CHANNELS.getNameId().name(); }
6262
@Override public String expectedId() throws Exception { return "accounts/framasoft"; }
6363
@Override public String expectedUrlContains() throws Exception { return "https://framatube.org/accounts/framasoft/video-channels"; }
6464
@Override public String expectedOriginalUrlContains() throws Exception { return "https://framatube.org/accounts/framasoft/video-channels"; }

extractor/src/test/java/org/schabi/newpipe/extractor/services/peertube/PeertubeChannelTabExtractorTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static void setUp() throws Exception {
3434

3535
@Override public ChannelTabExtractor extractor() throws Exception { return extractor; }
3636
@Override public StreamingService expectedService() throws Exception { return PeerTube; }
37-
@Override public String expectedName() throws Exception { return ChannelTabs.VIDEOS; }
37+
@Override public String expectedName() throws Exception { return ChannelTabs.VIDEOS.getNameId().name(); }
3838
@Override public String expectedId() throws Exception { return "video-channels/lqdn_channel@video.lqdn.fr"; }
3939
@Override public String expectedUrlContains() throws Exception { return "https://framatube.org/video-channels/lqdn_channel@video.lqdn.fr/videos"; }
4040
@Override public String expectedOriginalUrlContains() throws Exception { return "https://framatube.org/video-channels/lqdn_channel@video.lqdn.fr/videos"; }
@@ -64,7 +64,7 @@ static void setUp() throws IOException, ExtractionException {
6464

6565
@Override public ChannelTabExtractor extractor() throws Exception { return extractor; }
6666
@Override public StreamingService expectedService() throws Exception { return PeerTube; }
67-
@Override public String expectedName() throws Exception { return ChannelTabs.PLAYLISTS; }
67+
@Override public String expectedName() throws Exception { return ChannelTabs.PLAYLISTS.getNameId().name(); }
6868
@Override public String expectedId() throws Exception { return "video-channels/lqdn_channel@video.lqdn.fr"; }
6969
@Override public String expectedUrlContains() throws Exception { return "https://framatube.org/video-channels/lqdn_channel@video.lqdn.fr/video-playlists"; }
7070
@Override public String expectedOriginalUrlContains() throws Exception { return "https://framatube.org/video-channels/lqdn_channel@video.lqdn.fr/video-playlists"; }
@@ -86,7 +86,7 @@ static void setUp() throws IOException, ExtractionException {
8686

8787
@Override public ChannelTabExtractor extractor() throws Exception { return extractor; }
8888
@Override public StreamingService expectedService() throws Exception { return PeerTube; }
89-
@Override public String expectedName() throws Exception { return ChannelTabs.CHANNELS; }
89+
@Override public String expectedName() throws Exception { return ChannelTabs.CHANNELS.getNameId().name(); }
9090
@Override public String expectedId() throws Exception { return "accounts/framasoft"; }
9191
@Override public String expectedUrlContains() throws Exception { return "https://framatube.org/accounts/framasoft/video-channels"; }
9292
@Override public String expectedOriginalUrlContains() throws Exception { return "https://framatube.org/accounts/framasoft/video-channels"; }

0 commit comments

Comments
 (0)