Fix up core unit tests when a twitter api key isn't provided

This commit is contained in:
Patrick Robertson
2025-01-17 12:02:38 +01:00
parent 394bcd8d47
commit 17c1c9c360
2 changed files with 2 additions and 1 deletions

View File

@@ -74,4 +74,5 @@ documentation = "https://github.com/bellingcat/auto-archiver"
[tool.pytest.ini_options]
markers = [
"download: marks tests that download content from the network",
"incremental: marks a class to run tests incrementally. If a test fails in the class, the remaining tests will be skipped",
]

View File

@@ -14,7 +14,7 @@ class TestTwitterApiArchiver(TestArchiverBase):
archiver_class = TwitterApiArchiver
config = {
"bearer_tokens": [],
"bearer_token": os.environ.get("TWITTER_BEARER_TOKEN"),
"bearer_token": os.environ.get("TWITTER_BEARER_TOKEN", "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"),