archinstall/tests/conftest.py

34 lines
924 B
Python

from pathlib import Path
import pytest
@pytest.fixture(scope='session')
def config_fixture() -> Path:
return Path(__file__).parent / 'data' / 'test_config.json'
@pytest.fixture(scope='session')
def creds_fixture() -> Path:
return Path(__file__).parent / 'data' / 'test_creds.json'
@pytest.fixture(scope='session')
def mirror_backwards_config() -> Path:
return Path(__file__).parent / 'data' / 'test_config_mirror_backwards.json'
@pytest.fixture(scope='session')
def mirrorlist_no_country_fixture() -> Path:
return Path(__file__).parent / 'data' / 'mirrorlists' / 'test_no_country'
@pytest.fixture(scope='session')
def mirrorlist_with_country_fixture() -> Path:
return Path(__file__).parent / 'data' / 'mirrorlists' / 'test_with_country'
@pytest.fixture(scope='session')
def mirrorlist_multiple_countries_fixture() -> Path:
return Path(__file__).parent / 'data' / 'mirrorlists' / 'test_multiple_countries'