ArchiveBox/tests/fixtures.py

10 lines
No EOL
198 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