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
commit cf5a638574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {
// 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);
}
}
}