18 lines
534 B
Python
18 lines
534 B
Python
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
|
|
def pytest_addoption(parser) -> None:
|
|
parser.addoption(
|
|
"--run-emulation", action="store_true", default=False, help="run emulation tests"
|
|
)
|
|
parser.addoption("--run-podman", action="store_true", default=False, help="run podman tests")
|
|
|
|
|
|
@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]
|