Limit disabled extractor plugin narrowing to version tests

This commit is contained in:
Nick Sweeting 2026-06-24 11:15:43 -07:00
parent 23d215591e
commit bf1d7ebe15
No known key found for this signature in database

View File

@ -211,7 +211,6 @@ def run_archivebox_cmd(
if disable_extractors:
run_env.update(
{
"PLUGINS": "__archivebox_test_no_plugins__",
"SAVE_ARCHIVEDOTORG": "False",
"SAVE_TITLE": "False",
"SAVE_FAVICON": "False",
@ -229,6 +228,8 @@ def run_archivebox_cmd(
"SAVE_HTMLTOTEXT": "False",
},
)
if args and args[0] == "version":
run_env["PLUGINS"] = "__archivebox_test_no_plugins__"
if env:
run_env.update(env)
_set_test_source_pythonpath(run_env)