Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/mercurial/tests/conftest.py
Show All 31 Lines | |||||
@pytest.fixture | @pytest.fixture | ||||
def swh_loader_config(swh_storage_backend_config, tmp_path) -> Dict[str, Any]: | def swh_loader_config(swh_storage_backend_config, tmp_path) -> Dict[str, Any]: | ||||
return { | return { | ||||
"storage": swh_storage_backend_config, | "storage": swh_storage_backend_config, | ||||
"max_content_size": 104857600, | "max_content_size": 104857600, | ||||
"temp_directory": str(tmp_path), | "temp_directory": str(tmp_path), | ||||
} | } | ||||
@pytest.fixture(autouse=True) | |||||
def swh_mercurial_set_plain(monkeypatch): | |||||
"""Mercurial is customizable by users, so we use built-in environment | |||||
variables to turn off all customization in tests. | |||||
""" | |||||
monkeypatch.setenv("HGPLAIN", "") | |||||
monkeypatch.setenv("HGRCPATH", "") |