2022-07-14 13:36:57 +02:00
|
|
|
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"]
|
|
|
|
|
)
|
2022-07-14 13:36:57 +02:00
|
|
|
def build_frontend_env(request) -> dict[str, str]:
|
2021-10-16 21:31:20 -04:00
|
|
|
return request.param # type: ignore[no-any-return]
|