Skip update checks for ytdlp when running tests

pull/279/head
Patrick Robertson 2025-03-26 23:28:46 +04:00
rodzic e06b0c0585
commit e0e9f93065
1 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -17,7 +17,16 @@ from auto_archiver.core.module import ModuleFactory
# that you only want to run if everything else succeeds (e.g. API calls). The order here is important
# what comes first will be run first (at the end of all other tests not mentioned)
# format is the name of the module (python file) without the .py extension
TESTS_TO_RUN_LAST = ["test_twitter_api_archiver"]
TESTS_TO_RUN_LAST = ["test_generic_archiver", "test_twitter_api_archiver"]
# don't check for ytdlp updates in tests
@pytest.fixture(autouse=True)
def skip_check_for_update(mocker):
update_ytdlp = mocker.patch(
"auto_archiver.modules.generic_extractor.generic_extractor.GenericExtractor.update_ytdlp"
)
update_ytdlp.return_value = False
@pytest.fixture