cc-repackage / tests /conftest.py
malteos
Add CC WARC repackaging Space (Gradio + HF Jobs + cdx_toolkit)
15eb4b9 unverified
Raw
History Blame Contribute Delete
376 Bytes
import os
import sys
import pytest
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
@pytest.fixture(scope="session")
def cc_fixtures(tmp_path_factory):
"""Build the toy CC bucket layout once; return its root dir."""
from tests.make_fixtures import build
root = str(tmp_path_factory.mktemp("cc"))
build(root)
return root