diff --git a/tests/e2e/budgets/test_budget_enforcement_e2e.py b/tests/e2e/budgets/test_budget_enforcement_e2e.py index ea2fba47331..d03288b637a 100644 --- a/tests/e2e/budgets/test_budget_enforcement_e2e.py +++ b/tests/e2e/budgets/test_budget_enforcement_e2e.py @@ -127,6 +127,10 @@ class TeamMemberBudgetCase(_BudgetCase): self._undo.append(lambda: self.client.delete_key(self.key)) +def _case_id(case_cls: Type[_BudgetCase]) -> str: + return case_cls.__name__ + + @pytest.mark.parametrize( "case_cls", [ @@ -136,7 +140,7 @@ class TeamMemberBudgetCase(_BudgetCase): OrganizationBudgetCase, TeamMemberBudgetCase, ], - ids=lambda c: c.__name__, + ids=_case_id, ) def test_budget_enforcement( client: BudgetClient, case_cls: Type[_BudgetCase] diff --git a/tests/e2e/conftest.py b/tests/e2e/conftest.py index f792244fd57..d9930170add 100644 --- a/tests/e2e/conftest.py +++ b/tests/e2e/conftest.py @@ -63,7 +63,7 @@ def pytest_sessionfinish(session: pytest.Session, exitstatus: int) -> None: @pytest.fixture(scope="session", autouse=True) -def _require_live_proxy() -> None: +def require_live_proxy() -> None: """Skip the entire session unless a proxy answers its liveness probe.""" try: resp = requests.get(f"{PROXY_BASE_URL}/health/liveliness", timeout=5)