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

pull/175/head
Patrick Robertson 2025-01-17 12:02:38 +01:00
rodzic 394bcd8d47
commit 17c1c9c360
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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",
]

Wyświetl plik

@ -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"),