Merge pull request #267 from metaprime/test-wordpress

Add WordpressComicRipperTest; remove dead site comics-xxx.com
This commit is contained in:
metaprime 2017-11-21 13:02:16 -08:00 committed by GitHub
commit fc32fbe713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 98 additions and 3 deletions

View File

@ -22,7 +22,7 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
super(url); super(url);
} }
// Test links: // Test links (see also WordpressComicRipperTest.java)
// http://www.totempole666.com/comic/first-time-for-everything-00-cover/ // http://www.totempole666.com/comic/first-time-for-everything-00-cover/
// http://buttsmithy.com/archives/comic/p1 // http://buttsmithy.com/archives/comic/p1
// http://themonsterunderthebed.net/?comic=test-post // http://themonsterunderthebed.net/?comic=test-post
@ -30,7 +30,7 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
// http://www.konradokonski.com/sawdust/ // http://www.konradokonski.com/sawdust/
// http://www.konradokonski.com/wiory/ // http://www.konradokonski.com/wiory/
// http://freeadultcomix.com/finders-feepaid-in-full-sparrow/ // http://freeadultcomix.com/finders-feepaid-in-full-sparrow/
// http://comics-xxx.com/republic-rendezvous-palcomix-star-wars-xxx/ // http://thisis.delvecomic.com/NewWP/comic/in-too-deep/
// http://tnbtu.com/comic/01-00/ // http://tnbtu.com/comic/01-00/
// http://shipinbottle.pepsaga.com/?p=281 // http://shipinbottle.pepsaga.com/?p=281
@ -42,7 +42,6 @@ public class WordpressComicRipper extends AbstractHTMLRipper {
"www.konradokonski.com", "www.konradokonski.com",
"freeadultcomix.com", "freeadultcomix.com",
"thisis.delvecomic.com", "thisis.delvecomic.com",
"comics-xxx.com",
"tnbtu.com", "tnbtu.com",
"shipinbottle.pepsaga.com" "shipinbottle.pepsaga.com"
); );

View File

@ -0,0 +1,96 @@
package com.rarchives.ripme.tst.ripper.rippers;
import java.io.IOException;
import java.net.URL;
import com.rarchives.ripme.ripper.rippers.WordpressComicRipper;
public class WordpressComicRipperTest extends RippersTest {
// Test links (see also WordpressComicRipper.java)
// http://www.totempole666.com/comic/first-time-for-everything-00-cover/
// http://buttsmithy.com/archives/comic/p1
// http://themonsterunderthebed.net/?comic=test-post
// http://prismblush.com/comic/hella-trap-pg-01/
// http://www.konradokonski.com/sawdust/
// http://www.konradokonski.com/wiory/
// http://freeadultcomix.com/finders-feepaid-in-full-sparrow/
// http://thisis.delvecomic.com/NewWP/comic/in-too-deep/
// http://tnbtu.com/comic/01-00/
// http://shipinbottle.pepsaga.com/?p=281
/*
// https://github.com/RipMeApp/ripme/issues/269 - Disabled test - WordpressRipperTest: various domains flaky in CI
public void test_totempole666() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper(
new URL("http://www.totempole666.com/comic/first-time-for-everything-00-cover/"));
testRipper(ripper);
}
*/
/*
// https://github.com/RipMeApp/ripme/issues/269 - Disabled test - WordpressRipperTest: various domains flaky in CI
public void test_buttsmithy() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper(
new URL("http://buttsmithy.com/archives/comic/p1"));
testRipper(ripper);
}
*/
/*
// https://github.com/RipMeApp/ripme/issues/269 - Disabled test - WordpressRipperTest: various domains flaky in CI
public void test_themonsterunderthebed() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper(
new URL("http://themonsterunderthebed.net/?comic=test-post"));
testRipper(ripper);
}
*/
public void test_prismblush() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper(
new URL("http://prismblush.com/comic/hella-trap-pg-01/"));
testRipper(ripper);
}
/*
// https://github.com/RipMeApp/ripme/issues/266 - WordpressRipper: konradokonski.com previously supported but now cannot rip
public void test_konradokonski_1() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper(
new URL("http://www.konradokonski.com/sawdust/"));
testRipper(ripper);
}
public void test_konradokonski_2() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper(
new URL("http://www.konradokonski.com/wiory/"));
testRipper(ripper);
}
*/
/*
// https://github.com/RipMeApp/ripme/issues/269 - Disabled test - WordpressRipperTest: various domains flaky in CI
public void test_freeadultcomix() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper(
new URL("http://freeadultcomix.com/finders-feepaid-in-full-sparrow/"));
testRipper(ripper);
}
*/
public void test_delvecomic() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper(
new URL("http://thisis.delvecomic.com/NewWP/comic/in-too-deep/"));
testRipper(ripper);
}
public void test_tnbtu() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper(
new URL("http://tnbtu.com/comic/01-00/"));
testRipper(ripper);
}
public void test_pepsaga() throws IOException {
WordpressComicRipper ripper = new WordpressComicRipper(
new URL("http://shipinbottle.pepsaga.com/?p=281"));
testRipper(ripper);
}
}