Skip to content

Commit

Permalink
imgur 100, ehentai flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
soloturn committed Dec 12, 2024
1 parent afe0728 commit b0214bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ version = "1.7.94"
description = "ripme"

jacoco {
toolVersion = "0.8.11"
toolVersion = "0.8.12"
}

jgitver {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
import com.rarchives.ripme.ripper.rippers.EHentaiRipper;
import com.rarchives.ripme.utils.RipUtils;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

public class EhentaiRipperTest extends RippersTest {
@Test
@Tag("flaky")
public void testEHentaiAlbum() throws IOException, URISyntaxException {
EHentaiRipper ripper = new EHentaiRipper(new URI("https://e-hentai.org/g/1144492/e823bdf9a5/").toURL());
testRipper(ripper);
Expand All @@ -34,4 +36,4 @@ public void testTagBlackList() throws IOException, URISyntaxException {
blacklistedTag = RipUtils.checkTags(tags2, tagsOnPage);
Assertions.assertEquals("midnight on mars", blacklistedTag);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.rarchives.ripme.utils.RipUtils;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

import java.io.IOException;
Expand Down Expand Up @@ -95,6 +96,7 @@ public void testImgurAlbumWithMoreThan20Pictures() throws IOException, URISyntax
}

@Test
@Tag("flaky")
public void testImgurAlbumWithMoreThan100Pictures() throws IOException, URISyntaxException {
ImgurAlbum album = ImgurRipper.getImgurAlbum(new URI("https://imgur.com/a/HX3JSrD").toURL());
Assertions.assertTrue(album.images.size() >= 100,
Expand Down

0 comments on commit b0214bc

Please sign in to comment.