diff --git a/tests/test_public_showcase.py b/tests/test_public_showcase.py index 1dc1a33c..5c5b1ccc 100644 --- a/tests/test_public_showcase.py +++ b/tests/test_public_showcase.py @@ -69,12 +69,9 @@ class TestShowcaseExecution: for claim in scene["claims"]: assert claim["supported"] is True - @pytest.mark.skipif( - _CI_BUDGET_SKIPPED, - reason="ADR-0099 runtime budget is a production contract; " - "set CORE_SHOWCASE_SKIP_BUDGET=1 suppresses enforcement on slow CI runners", - ) def test_runtime_within_budget(self, showcase_payload: dict[str, Any]) -> None: + if os.environ.get("CORE_SHOWCASE_SKIP_BUDGET") == "1": + pytest.skip("ADR-0099 runtime budget is a production contract; suppressed on slow CI runners") runtime_ms = showcase_payload["total_runtime_ms"] budget_ms = MAX_RUNTIME_SECONDS * 1000 assert runtime_ms <= budget_ms, (