1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-26 15:24:51 +02:00

Merge pull request #934 from cyian-1756/spankbangUnitTest

Made the SpankBangRipperTest only run locally and not in the CI
This commit is contained in:
cyian-1756
2018-09-12 13:17:34 -04:00
committed by GitHub

View File

@@ -4,13 +4,15 @@ import java.io.IOException;
import java.net.URL;
import com.rarchives.ripme.ripper.rippers.video.SpankbangRipper;
import com.rarchives.ripme.tst.ripper.rippers.RippersTest;
import com.rarchives.ripme.utils.Utils;
public class SpankBangRipperTest extends RippersTest {
public void testSpankBangVideo() throws IOException {
SpankbangRipper ripper = new SpankbangRipper(new URL("https://spankbang.com/2a7fh/video/mdb901")); //most popular video of all time on site; should stay up
testRipper(ripper);
// This test fails on the CI so we skip it unless running locally
if (Utils.getConfigBoolean("test.run_flaky_tests", false)) {
SpankbangRipper ripper = new SpankbangRipper(new URL("https://spankbang.com/2a7fh/video/mdb901")); //most popular video of all time on site; should stay up
testRipper(ripper);
}
}
}