spec-b300 / source /tests /utils.py
khazic's picture
Archive three-epoch run: logs and provenance part 5
2dd5f57 verified
Raw History Blame Contribute Delete
353 Bytes
import os
from collections.abc import Callable
import pytest
def requires_cadence(cadence: str | list[str]) -> Callable:
cadence = [cadence] if isinstance(cadence, str) else cadence
current_cadence = os.environ.get("CADENCE", "commit")
return pytest.mark.skipif(
(current_cadence not in cadence), reason="cadence mismatch"
)