1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-07-31 02:50:15 +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.assertTrue;
import com.rarchives.ripme.ripper.rippers.CoomerPartyRipper;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
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 {
@Test
@Tag("flaky")
public void testRip() throws IOException, URISyntaxException {
URL url = new URI("https://coomer.su/onlyfans/user/soogsx").toURL();
CoomerPartyRipper ripper = new CoomerPartyRipper(url);
@@ -23,7 +25,7 @@ public class CoomerPartyRipperTest extends RippersTest {
@Test
public void testUrlParsing() throws IOException, URISyntaxException {
String expectedGid = "onlyfans_soogsx";
String[] urls = new String[]{
String[] urls = new String[] {
"https://coomer.su/onlyfans/user/soogsx", // normal url
"http://coomer.su/onlyfans/user/soogsx", // http, not https
"https://coomer.su/onlyfans/user/soogsx/", // with slash at the end
@@ -37,4 +39,4 @@ public class CoomerPartyRipperTest extends RippersTest {
assertEquals(expectedGid, ripper.getGID(url));
}
}
}
}

View File

@@ -72,6 +72,7 @@ public class FapwizRipperTest extends RippersTest {
}
@Test
@Tag("flaky")
public void testRipPostWithEmojiInLongUrlAtEnd() throws IOException, URISyntaxException {
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/")

View File

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

View File

@@ -1,17 +1,17 @@
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.net.URI;
import java.net.URISyntaxException;
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.
*
@@ -19,7 +19,8 @@ public class VscoRipperTest extends RippersTest {
*/
@Test
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);
}
@@ -30,6 +31,7 @@ public class VscoRipperTest extends RippersTest {
* @throws IOException
*/
@Test
@Tag("flaky")
public void testHyphenatedRip() throws IOException, URISyntaxException {
VscoRipper ripper = new VscoRipper(new URI("https://vsco.co/jolly-roger/gallery").toURL());
testRipper(ripper);