mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-01-17 20:58:31 +01:00
split instagram testcases in album and single
This commit is contained in:
parent
6296881ffc
commit
4bd7f5adc2
@ -3,6 +3,7 @@ package com.rarchives.ripme.tst.ripper.rippers;
|
||||
import com.rarchives.ripme.ripper.rippers.InstagramRipper;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Tag;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
@ -37,10 +38,8 @@ public class InstagramRipperTest extends RippersTest {
|
||||
|
||||
@Test
|
||||
@Disabled("Ripper broken for single items")
|
||||
public void testInstagramAlbums() throws IOException {
|
||||
public void testInstagramSingle() throws IOException {
|
||||
List<URL> contentURLs = new ArrayList<>();
|
||||
// This unit test is a bit flaky
|
||||
//contentURLs.add(new URL("https://www.instagram.com/Test_User/"));
|
||||
contentURLs.add(new URL("https://www.instagram.com/p/BaNPpaHn2zU/?hl=en"));
|
||||
contentURLs.add(new URL("https://www.instagram.com/p/BaNPpaHn2zU/"));
|
||||
for (URL url : contentURLs) {
|
||||
@ -48,4 +47,14 @@ public class InstagramRipperTest extends RippersTest {
|
||||
testRipper(ripper);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
@Tag("flaky")
|
||||
public void testInstagramAlbums() throws IOException {
|
||||
// do not test, in case of rate limit 200/hr since 2021. see
|
||||
// https://github.com/ripmeapp2/ripme/issues/32
|
||||
URL url = new URL("https://www.instagram.com/Test_User/");
|
||||
InstagramRipper ripper = new InstagramRipper(url);
|
||||
testRipper(ripper);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user