mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-12-02 17:09:13 +00:00
26 lines
No EOL
606 B
Python
26 lines
No EOL
606 B
Python
import os
|
|
import subprocess
|
|
|
|
import pytest
|
|
|
|
@pytest.fixture
|
|
def process(tmp_path):
|
|
os.chdir(tmp_path)
|
|
process = subprocess.run(['archivebox', 'init'], capture_output=True)
|
|
return process
|
|
|
|
@pytest.fixture
|
|
def disable_extractors_dict():
|
|
env = os.environ.copy()
|
|
env.update({
|
|
"USE_WGET": "false",
|
|
"USE_SINGLEFILE": "false",
|
|
"USE_READABILITY": "false",
|
|
"SAVE_PDF": "false",
|
|
"SAVE_SCREENSHOT": "false",
|
|
"SAVE_DOM": "false",
|
|
"USE_GIT": "false",
|
|
"SAVE_MEDIA": "false",
|
|
"SAVE_ARCHIVE_DOT_ORG": "false"
|
|
})
|
|
return env |