1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-11 16:34:04 +02:00

Tag recently flaky tests

This commit is contained in:
MetaPrime
2025-04-15 08:57:20 -07:00
parent e2c7cfcc50
commit c686e1e0b0
4 changed files with 23 additions and 15 deletions

View File

@@ -3,17 +3,19 @@ package com.rarchives.ripme.tst.ripper.rippers;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
import com.rarchives.ripme.ripper.rippers.CoomerPartyRipper;
import org.junit.jupiter.api.Test;
import java.io.IOException; import java.io.IOException;
import java.net.URI; import java.net.URI;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import java.net.URL; import java.net.URL;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import com.rarchives.ripme.ripper.rippers.CoomerPartyRipper;
public class CoomerPartyRipperTest extends RippersTest { public class CoomerPartyRipperTest extends RippersTest {
@Test @Test
@Tag("flaky")
public void testRip() throws IOException, URISyntaxException { public void testRip() throws IOException, URISyntaxException {
URL url = new URI("https://coomer.su/onlyfans/user/soogsx").toURL(); URL url = new URI("https://coomer.su/onlyfans/user/soogsx").toURL();
CoomerPartyRipper ripper = new CoomerPartyRipper(url); CoomerPartyRipper ripper = new CoomerPartyRipper(url);
@@ -23,7 +25,7 @@ public class CoomerPartyRipperTest extends RippersTest {
@Test @Test
public void testUrlParsing() throws IOException, URISyntaxException { public void testUrlParsing() throws IOException, URISyntaxException {
String expectedGid = "onlyfans_soogsx"; String expectedGid = "onlyfans_soogsx";
String[] urls = new String[]{ String[] urls = new String[] {
"https://coomer.su/onlyfans/user/soogsx", // normal url "https://coomer.su/onlyfans/user/soogsx", // normal url
"http://coomer.su/onlyfans/user/soogsx", // http, not https "http://coomer.su/onlyfans/user/soogsx", // http, not https
"https://coomer.su/onlyfans/user/soogsx/", // with slash at the end "https://coomer.su/onlyfans/user/soogsx/", // with slash at the end

View File

@@ -72,6 +72,7 @@ public class FapwizRipperTest extends RippersTest {
} }
@Test @Test
@Tag("flaky")
public void testRipPostWithEmojiInLongUrlAtEnd() throws IOException, URISyntaxException { public void testRipPostWithEmojiInLongUrlAtEnd() throws IOException, URISyntaxException {
URL url = new URI( URL url = new URI(
"https://fapwiz.com/bimeat1998/just-imagine-youre-out-with-your-girl-and-your-buddies-and-then-she-makes-this-move-%f0%9f%98%8d/") "https://fapwiz.com/bimeat1998/just-imagine-youre-out-with-your-girl-and-your-buddies-and-then-she-makes-this-move-%f0%9f%98%8d/")

View File

@@ -5,12 +5,15 @@ import java.net.URI;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import java.net.URL; import java.net.URL;
import com.rarchives.ripme.ripper.rippers.RulePornRipper;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import com.rarchives.ripme.ripper.rippers.RulePornRipper;
public class RulePornRipperTest extends RippersTest { public class RulePornRipperTest extends RippersTest {
@Test @Test
@Tag("flaky")
public void testRip() throws IOException, URISyntaxException { public void testRip() throws IOException, URISyntaxException {
RulePornRipper ripper = new RulePornRipper(new URI("https://ruleporn.com/tosh/").toURL()); RulePornRipper ripper = new RulePornRipper(new URI("https://ruleporn.com/tosh/").toURL());
testRipper(ripper); testRipper(ripper);

View File

@@ -1,17 +1,17 @@
package com.rarchives.ripme.tst.ripper.rippers; package com.rarchives.ripme.tst.ripper.rippers;
import com.rarchives.ripme.ripper.rippers.VscoRipper;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.io.IOException; import java.io.IOException;
import java.net.URI; import java.net.URI;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import java.net.URL; import java.net.URL;
public class VscoRipperTest extends RippersTest { import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import com.rarchives.ripme.ripper.rippers.VscoRipper;
public class VscoRipperTest extends RippersTest {
/** /**
* Testing single image. * Testing single image.
* *
@@ -19,7 +19,8 @@ public class VscoRipperTest extends RippersTest {
*/ */
@Test @Test
public void testSingleImageRip() throws IOException, URISyntaxException { public void testSingleImageRip() throws IOException, URISyntaxException {
VscoRipper ripper = new VscoRipper(new URI("https://vsco.co/jolly-roger/media/597ce449846079297b3f7cf3").toURL()); VscoRipper ripper = new VscoRipper(
new URI("https://vsco.co/jolly-roger/media/597ce449846079297b3f7cf3").toURL());
testRipper(ripper); testRipper(ripper);
} }
@@ -30,6 +31,7 @@ public class VscoRipperTest extends RippersTest {
* @throws IOException * @throws IOException
*/ */
@Test @Test
@Tag("flaky")
public void testHyphenatedRip() throws IOException, URISyntaxException { public void testHyphenatedRip() throws IOException, URISyntaxException {
VscoRipper ripper = new VscoRipper(new URI("https://vsco.co/jolly-roger/gallery").toURL()); VscoRipper ripper = new VscoRipper(new URI("https://vsco.co/jolly-roger/gallery").toURL());
testRipper(ripper); testRipper(ripper);