Merge pull request #170 from cyian-1756/unit_test_fixes

Fixed broken unit tests
This commit is contained in:
cyian-1756 2017-11-10 05:56:23 -05:00 committed by GitHub
commit 6b6c699dba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,14 +26,10 @@ public class ChanRipperTest extends RippersTest {
List<URL> passURLs = new ArrayList<>(); List<URL> passURLs = new ArrayList<>();
// URLs that should work // URLs that should work
passURLs.add(new URL("http://desuchan.net/v/res/7034.html")); passURLs.add(new URL("http://desuchan.net/v/res/7034.html"));
passURLs.add(new URL("http://boards.4chan.org/hr/thread/2214511")); passURLs.add(new URL("https://boards.4chan.org/hr/thread/3015701"));
passURLs.add(new URL("http://fgts.jp/r/thread/12225949/")); passURLs.add(new URL("https://boards.420chan.org/420/res/232066.php"));
passURLs.add(new URL("http://boards.420chan.org/ana/res/75984.php")); passURLs.add(new URL("http://7chan.org/gif/res/25873.html"));
passURLs.add(new URL("http://7chan.org/gif/res/23795.html")); passURLs.add(new URL("https://xchan.pw/board/porn/thread/874116/"));
passURLs.add(new URL("http://unichan2.org/b/res/518004.html"));
passURLs.add(new URL("http://xchan.pw/porn/res/437.html"));
passURLs.add(new URL("http://archive.moe/c/thread/2295132/"));
passURLs.add(new URL("http://drawchan.net/dc/dw/res/114910.html"));
for (URL url : passURLs) { for (URL url : passURLs) {
ChanRipper ripper = new ChanRipper(url); ChanRipper ripper = new ChanRipper(url);
ripper.setup(); ripper.setup();