mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-27 07:44:20 +02:00
Tumblr ripper unit tests now have their own api key
This commit is contained in:
@@ -49,6 +49,10 @@ public class TumblrRipper extends AlbumRipper {
|
|||||||
* @return Tumblr API key
|
* @return Tumblr API key
|
||||||
*/
|
*/
|
||||||
public static String getApiKey() {
|
public static String getApiKey() {
|
||||||
|
// Use a different api ket for unit tests so we don't get 429 errors
|
||||||
|
if (isThisATest()) {
|
||||||
|
return "UHpRFx16HFIRgQjtjJKgfVIcwIeb71BYwOQXTMtiCvdSEPjV7N";
|
||||||
|
}
|
||||||
if (API_KEY == null) {
|
if (API_KEY == null) {
|
||||||
API_KEY = pickRandomApiKey();
|
API_KEY = pickRandomApiKey();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user