From 291a82fdc383ca361a2b9f947c2715b76477fe44 Mon Sep 17 00:00:00 2001 From: noahpodgurski Date: Wed, 17 Jun 2026 09:35:27 -0400 Subject: [PATCH] fix health tests --- src/tests/conftest.py | 12 ++++++------ src/tests/integration/test_health.py | 1 + src/tests/integration/test_security_headers.py | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/tests/conftest.py b/src/tests/conftest.py index 87a898a..4a5e73a 100644 --- a/src/tests/conftest.py +++ b/src/tests/conftest.py @@ -17,12 +17,12 @@ def mock_request(): def _force_mlpa_debug_false(): monkeypatch = pytest.MonkeyPatch() monkeypatch.setenv("MLPA_DEBUG", "false") - monkeypatch.setenv("ADDITIONAL_FXA_SCOPE_1", None) - monkeypatch.setenv("ADDITIONAL_FXA_SCOPE_2", None) - monkeypatch.setenv("ADDITIONAL_FXA_SCOPE_3", None) + monkeypatch.setenv("ADDITIONAL_FXA_SCOPE_1", "") + monkeypatch.setenv("ADDITIONAL_FXA_SCOPE_2", "") + monkeypatch.setenv("ADDITIONAL_FXA_SCOPE_3", "") env.MLPA_DEBUG = False - env.ADDITIONAL_FXA_SCOPE_1 = None - env.ADDITIONAL_FXA_SCOPE_2 = None - env.ADDITIONAL_FXA_SCOPE_3 = None + env.ADDITIONAL_FXA_SCOPE_1 = "" + env.ADDITIONAL_FXA_SCOPE_2 = "" + env.ADDITIONAL_FXA_SCOPE_3 = "" yield monkeypatch.undo() diff --git a/src/tests/integration/test_health.py b/src/tests/integration/test_health.py index 2d5d845..1a41b64 100644 --- a/src/tests/integration/test_health.py +++ b/src/tests/integration/test_health.py @@ -25,6 +25,7 @@ def test_health_readiness(mocked_client_integration, httpx_mock): url=f"{env.LITELLM_API_BASE}/public/model_hub/info", status_code=200, json={"litellm_version": "1.84.4"}, + is_optional=True, ) readiness_response = mocked_client_integration.get("/health/readiness") diff --git a/src/tests/integration/test_security_headers.py b/src/tests/integration/test_security_headers.py index 92c6646..065a720 100644 --- a/src/tests/integration/test_security_headers.py +++ b/src/tests/integration/test_security_headers.py @@ -57,6 +57,7 @@ def test_security_headers_on_all_endpoints(mocked_client_integration, httpx_mock url=f"{env.LITELLM_API_BASE}/public/model_hub/info", status_code=200, json={"litellm_version": "1.84.4"}, + is_optional=True, ) endpoints = [