Tumblr ripper unit tests now have their own api key

This commit is contained in:
cyian-1756 2018-09-23 00:35:32 -04:00
parent 89ded2936b
commit 54502f3310

View File

@ -49,6 +49,10 @@ public class TumblrRipper extends AlbumRipper {
* @return Tumblr API key
*/
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) {
API_KEY = pickRandomApiKey();
}