Files
cibuildwheel/test/conftest.py
T

18 lines
534 B
Python
Raw Normal View History

from __future__ import annotations
2021-06-23 10:47:18 -04:00
2020-12-21 11:06:25 +00:00
import pytest
2021-06-23 10:47:18 -04:00
def pytest_addoption(parser) -> None:
2020-12-21 11:06:25 +00:00
parser.addoption(
"--run-emulation", action="store_true", default=False, help="run emulation tests"
)
2022-06-27 19:08:46 +01:00
parser.addoption("--run-podman", action="store_true", default=False, help="run podman tests")
2021-06-23 10:47:18 -04:00
@pytest.fixture(
params=[{"CIBW_BUILD_FRONTEND": "pip"}, {"CIBW_BUILD_FRONTEND": "build"}], ids=["pip", "build"]
)
def build_frontend_env(request) -> dict[str, str]:
return request.param # type: ignore[no-any-return]