kopia lustrzana https://github.com/bellingcat/auto-archiver
make python api tests work on gh when no env is set
rodzic
30ea8a0ba4
commit
c2c9718f73
|
@ -47,4 +47,4 @@ jobs:
|
|||
- name: Run Download Tests
|
||||
run: poetry run pytest -ra -v -x -m "download"
|
||||
env:
|
||||
TWITTER_BEARER_TOKEN: ${{ secrets.TWITTER_BEARER_TOKEN }}
|
||||
TWITTER_BEARER_TOKEN: ${{ secrets.TWITTER_BEARER_TOKEN || '' }}
|
||||
|
|
|
@ -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"),
|
||||
|
|
Ładowanie…
Reference in New Issue