kiwi-el8/test/scripts/conftest.py
Marcus Schäfer 1ec3b25e91
Remove tox dependency
tox was used as sort of a make target to run unit tests
and more in a python virtualenv. However, since we switched
everything to poetry it's no longer needed to let tox create
the python virtual environments. This commit moves the tox
targets into the Makefile and adapts the github workflow
files accordingly. In addition the scripts container based
tests were re-activated and fixed such that they succeed
again.
2024-11-05 18:03:25 +01:00

37 lines
682 B
Python

from pytest_container import auto_container_parametrize, DerivedContainer
FUNCTIONS_COPY_CONTAINERFILE = """COPY kiwi/config/functions.sh /bin/functions.sh
"""
CONTAINERS = [
DerivedContainer(base=url, containerfile=FUNCTIONS_COPY_CONTAINERFILE)
for url in [
"registry.opensuse.org/opensuse/leap:15.5",
"registry.opensuse.org/opensuse/tumbleweed:latest",
"registry.fedoraproject.org/fedora:latest"
]
]
(
LEAP_15_5,
TUMBLEWEED,
FEDORA
) = CONTAINERS
CONTAINERS_WITH_ZYPPER = [
LEAP_15_5,
TUMBLEWEED
]
CONTAINERS_WITH_DNF = [
FEDORA
]
def pytest_generate_tests(metafunc):
auto_container_parametrize(metafunc)