-
Notifications
You must be signed in to change notification settings - Fork 668
Removed unused vars and imports in ripper #2178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,5 @@ | ||
| package com.rarchives.ripme.tst.ripper.rippers; | ||
|
|
||
| import java.io.IOException; | ||
| import java.net.URL; | ||
|
|
||
| import com.rarchives.ripme.ripper.rippers.JabArchivesRipper; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As you can see this is a stub of a test file that hasn't been implemented yet. I'd rather see someone add an implementation rather than remove parts of the stub. |
||
|
|
||
| public class JabArchivesRipperTest extends RippersTest { | ||
| // TODO add a test | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,8 +84,7 @@ public void testRedditGfyBadURL() throws IOException, URISyntaxException { | |
| */ | ||
| @Test | ||
| public void testRedditGfycatRedirectURL() throws IOException, URISyntaxException { | ||
| RedditRipper ripper = new RedditRipper( | ||
| new URI("https://www.reddit.com/r/NSFW_GIF/comments/ennwsa/gorgeous_tits/").toURL()); | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test may appear to test nothing but really is expecting that API call to complete without throwing. Update the test to fix it accordingly instead of removing the body of the test. |
||
| } | ||
|
|
||
| @Test | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,10 +45,6 @@ private void videoTestHelper(VideoRipper ripper) { | |
| public void testTwitchVideoRipper() throws IOException, URISyntaxException { | ||
| List<URL> contentURLs = new ArrayList<>(); | ||
| contentURLs.add(new URI("https://clips.twitch.tv/FaithfulIncredulousPotTBCheesePull").toURL()); | ||
| for (URL url : contentURLs) { | ||
| // TwitchVideoRipper ripper = new TwitchVideoRipper(url); | ||
| // videoTestHelper(ripper); | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The better fix here is to uncomment the loop body and disable the test (mark flaky, see other disabled tests that have done so) |
||
| } | ||
|
|
||
| @Test | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of deleting the body of the test, fix the test to use the unused variables