make python api tests work on gh when no env is set

This commit is contained in:
msramalho
2025-06-30 02:20:51 +01:00
parent 30ea8a0ba4
commit c2c9718f73
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ class TestTwitterApiExtractor(TestExtractorBase):
config = {
"bearer_tokens": [],
"bearer_token": os.environ.get("TWITTER_BEARER_TOKEN", "TEST_KEY"),
"bearer_token": os.environ.get("TWITTER_BEARER_TOKEN") or "TEST_KEY",
"consumer_key": os.environ.get("TWITTER_CONSUMER_KEY"),
"consumer_secret": os.environ.get("TWITTER_CONSUMER_SECRET"),
"access_token": os.environ.get("TWITTER_ACCESS_TOKEN"),