[YouTube] Fix mix tests with invalid video ids

Replaces mix tests based on a strange mix type RDQM{videoId} (only reference I could find is https://github.com/ytdl-org/youtube-dl/issues/26228) and with an invalid video id of 13 characters (the first two characters were QM, but even after removing QM there still wasn't a video available at that id).
Also updates mocks.
This commit is contained in:
Stypox 2022-02-17 18:12:31 +01:00
parent d660c04838
commit 279f3a20fe
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23
25 changed files with 656 additions and 1586 deletions

View file

@ -35,8 +35,8 @@ public class YoutubeMixPlaylistExtractorTest {
private static YoutubeMixPlaylistExtractor extractor;
public static class Mix {
private static final String VIDEO_ID = "QMVCAPd5cwBcg";
private static final String VIDEO_TITLE = "Mix ";
private static final String VIDEO_ID = "UtF6Jej8yb4";
private static final String VIDEO_TITLE = "Avicii - The Nights";
@BeforeAll
public static void setUp() throws Exception {
@ -128,10 +128,10 @@ public class YoutubeMixPlaylistExtractorTest {
public static class MixWithIndex {
private static final String VIDEO_ID = "QMVCAPd5cwBcg";
private static final String VIDEO_TITLE = "Mix ";
private static final String VIDEO_ID = "UtF6Jej8yb4";
private static final String VIDEO_TITLE = "Avicii - The Nights";
private static final int INDEX = 4;
private static final String VIDEO_ID_NUMBER_4 = "lWA2pjMjpBs";
private static final String VIDEO_ID_NUMBER_4 = "ebXbLfLACGM";
@BeforeAll
public static void setUp() throws Exception {