diff --git a/pyproject.toml b/pyproject.toml index 995024a..0cd5f8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", ] \ No newline at end of file diff --git a/tests/archivers/test_twitter_api_archiver.py b/tests/archivers/test_twitter_api_archiver.py index fae1780..c8009f1 100644 --- a/tests/archivers/test_twitter_api_archiver.py +++ b/tests/archivers/test_twitter_api_archiver.py @@ -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"),