if (
current_test_suite == cfg.get("current_suite")
and cfg.get("current_suite")
and not cfg.get("suite_infra_ready")
):
reason = cfg.get("suite_setup_failure") or "[SETUP] [ERROR] Набор пропущен: инфраструктура не готова"
pytest.skip(reason)
yield # pytest продолжит выполнение теста
cfg["suite_start_time"] = None
pytest.skip("Набор пропущен: ошибка подготовки инфраструктуры")
@pytest.fixture(autouse=True)
def offset_wait(request):
"""
Offset‑ожидание перед каждым тестом относительно фактического старта core
"""
cfg = request.config.group_state
if cfg.get("current_suite") and not cfg.get("suite_infra_ready"):
return
if offset_marker := request.node.get_closest_marker("offset"):