kopia lustrzana https://github.com/bellingcat/auto-archiver
Fix up core unit tests when a twitter api key isn't provided
rodzic
394bcd8d47
commit
17c1c9c360
|
@ -74,4 +74,5 @@ documentation = "https://github.com/bellingcat/auto-archiver"
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
markers = [
|
markers = [
|
||||||
"download: marks tests that download content from the network",
|
"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",
|
||||||
]
|
]
|
|
@ -14,7 +14,7 @@ class TestTwitterApiArchiver(TestArchiverBase):
|
||||||
archiver_class = TwitterApiArchiver
|
archiver_class = TwitterApiArchiver
|
||||||
config = {
|
config = {
|
||||||
"bearer_tokens": [],
|
"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_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"),
|
||||||
|
|
Ładowanie…
Reference in New Issue