Skip to content
Snippets Groups Projects
mock_configuration.py 1.09 KiB
Newer Older
Frede H's avatar
Frede H committed
# http constants
URL_MIRROR_JSON = "http://repo.manjaro.org/mirrors.json"
URL_STATUS_JSON = "http://repo.manjaro.org/status.json"
# etc
CONFIG_FILE = "tests/mock/etc/pacman-mirrors.conf"
MIRROR_LIST = "tests/mock/etc/mirrorlist"
# pacman-mirrors
Frede H's avatar
Frede H committed
WORK_DIR = "tests/mock/var/"
Frede H's avatar
Frede H committed
CUSTOM_FILE = "tests/mock/var/custom-mirrors.json"
MIRROR_FILE = "tests/mock/usr/mirrors.json"
Frede H's avatar
Frede H committed
STATUS_FILE = "tests/mock/var/status.json"
Frede H's avatar
Frede H committed
# repo constants
BRANCHES = ("stable", "testing", "unstable")
REPO_ARCH = "/$repo/$arch"
Frede H's avatar
Frede H committed
# special cases
O_CUST_FILE = "tests/mock/var/Custom"
TO_BE_REMOVED = "tests/mock/var/mirrors.json"

test_conf = {
    "to_be_removed": TO_BE_REMOVED,
    "branch": "stable",
    "branches": BRANCHES,
    "config_file": CONFIG_FILE,
    "custom_file": CUSTOM_FILE,
    "method": "rank",
Frede H's avatar
Frede H committed
    "work_dir": WORK_DIR,
Frede H's avatar
Frede H committed
    "mirror_file": MIRROR_FILE,
    "mirror_list": MIRROR_LIST,
    "no_update": False,
    "only_country": [],
    "protocols": [],
    "repo_arch": REPO_ARCH,
    "status_file": STATUS_FILE,
    "ssl_verify": True,
    "url_mirrors_json": URL_MIRROR_JSON,
    "url_status_json": URL_STATUS_JSON
}