fixed peertube search test
This commit is contained in:
parent
bd22b55885
commit
07a8129a73
|
@ -3,9 +3,16 @@ package org.schabi.newpipe.extractor.services.peertube.search;
|
|||
import static org.junit.Assert.assertEquals;
|
||||
import static org.schabi.newpipe.extractor.ServiceList.PeerTube;
|
||||
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
public class PeertubeSearchQHTest {
|
||||
|
||||
@BeforeClass
|
||||
public static void setUpClass() throws Exception {
|
||||
// setting instance might break test when running in parallel
|
||||
PeerTube.setInstance("https://peertube.mastodon.host", "PeerTube on Mastodon.host");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRegularValues() throws Exception {
|
||||
|
@ -15,4 +22,4 @@ public class PeertubeSearchQHTest {
|
|||
assertEquals("https://peertube.mastodon.host/api/v1/search/videos?search=G%C3%BCl%C3%BCm", PeerTube.getSearchQHFactory().fromQuery("Gülüm").getUrl());
|
||||
assertEquals("https://peertube.mastodon.host/api/v1/search/videos?search=%3Fj%24%29H%C2%A7B", PeerTube.getSearchQHFactory().fromQuery("?j$)H§B").getUrl());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue