mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-26 15:24:51 +02:00
reddit flaky tests
This commit is contained in:
@@ -7,19 +7,20 @@ import java.net.URL;
|
|||||||
import com.rarchives.ripme.ripper.rippers.RedditRipper;
|
import com.rarchives.ripme.ripper.rippers.RedditRipper;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Disabled;
|
import org.junit.jupiter.api.Disabled;
|
||||||
|
import org.junit.jupiter.api.Tag;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
public class RedditRipperTest extends RippersTest {
|
public class RedditRipperTest extends RippersTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Disabled("Rip is flaky") // https://github.com/RipMeApp/ripme/issues/253
|
@Tag("flaky") // https://github.com/RipMeApp/ripme/issues/253
|
||||||
public void testRedditSubredditRip() throws IOException {
|
public void testRedditSubredditRip() throws IOException {
|
||||||
RedditRipper ripper = new RedditRipper(new URL("http://www.reddit.com/r/nsfw_oc"));
|
RedditRipper ripper = new RedditRipper(new URL("http://www.reddit.com/r/nsfw_oc"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Disabled("Rip is flaky") // https://github.com/RipMeApp/ripme/issues/253
|
@Tag("flaky") // https://github.com/RipMeApp/ripme/issues/253
|
||||||
public void testRedditSubredditTopRip() throws IOException {
|
public void testRedditSubredditTopRip() throws IOException {
|
||||||
RedditRipper ripper = new RedditRipper(new URL("http://www.reddit.com/r/nsfw_oc/top?t=all"));
|
RedditRipper ripper = new RedditRipper(new URL("http://www.reddit.com/r/nsfw_oc/top?t=all"));
|
||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
@@ -33,12 +34,13 @@ public class RedditRipperTest extends RippersTest {
|
|||||||
testRipper(ripper);
|
testRipper(ripper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**testRedditSubredditRip:19
|
||||||
* GFYCAT TEST Tests a good GfycatURL (no "/gifs/detail")
|
* GFYCAT TEST Tests a good GfycatURL (no "/gifs/detail")
|
||||||
*
|
*
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
|
@Tag("flaky")
|
||||||
public void testRedditGfyGoodURL() throws IOException {
|
public void testRedditGfyGoodURL() throws IOException {
|
||||||
RedditRipper ripper = new RedditRipper(
|
RedditRipper ripper = new RedditRipper(
|
||||||
new URL("https://www.reddit.com/r/bottesting/comments/7msozf/good_link/"));
|
new URL("https://www.reddit.com/r/bottesting/comments/7msozf/good_link/"));
|
||||||
@@ -51,6 +53,7 @@ public class RedditRipperTest extends RippersTest {
|
|||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
|
@Tag("flaky")
|
||||||
public void testRedditGfyBadURL() throws IOException {
|
public void testRedditGfyBadURL() throws IOException {
|
||||||
RedditRipper ripper = new RedditRipper(
|
RedditRipper ripper = new RedditRipper(
|
||||||
new URL("https://www.reddit.com/r/bottesting/comments/7msmhi/bad_link/"));
|
new URL("https://www.reddit.com/r/bottesting/comments/7msmhi/bad_link/"));
|
||||||
|
Reference in New Issue
Block a user