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

@@ -47,4 +47,4 @@ jobs:
- name: Run Download Tests - name: Run Download Tests
run: poetry run pytest -ra -v -x -m "download" run: poetry run pytest -ra -v -x -m "download"
env: env:
TWITTER_BEARER_TOKEN: ${{ secrets.TWITTER_BEARER_TOKEN }} TWITTER_BEARER_TOKEN: ${{ secrets.TWITTER_BEARER_TOKEN || '' }}

View File

@@ -13,7 +13,7 @@ class TestTwitterApiExtractor(TestExtractorBase):
config = { config = {
"bearer_tokens": [], "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_key": os.environ.get("TWITTER_CONSUMER_KEY"),
"consumer_secret": os.environ.get("TWITTER_CONSUMER_SECRET"), "consumer_secret": os.environ.get("TWITTER_CONSUMER_SECRET"),
"access_token": os.environ.get("TWITTER_ACCESS_TOKEN"), "access_token": os.environ.get("TWITTER_ACCESS_TOKEN"),