diff --git a/server/main.py b/server/main.py index a253e84b..479cbf2f 100644 --- a/server/main.py +++ b/server/main.py @@ -25,6 +25,7 @@ CLIENT_ID = get_env_variable("AUTH0_CLIENT_ID") API_URL = get_env_variable("API_URL") WEB_URL = get_env_variable("WEB_URL") +ENVRIMENT = get_env_variable("PETERCAT_ENV", "development") CALLBACK_URL = f"{API_URL}/api/auth/callback" is_dev = bool(get_env_variable("IS_DEV")) @@ -68,6 +69,7 @@ def home_page(): @app.get("/api/health_checker") def health_checker(): return { + "ENVRIMENT": ENVRIMENT, "API_URL": API_URL, "WEB_URL": WEB_URL, "CALLBACK_URL": CALLBACK_URL, diff --git a/server/tests/test_main.py b/server/tests/test_main.py index cacda1a1..595e67ad 100644 --- a/server/tests/test_main.py +++ b/server/tests/test_main.py @@ -4,6 +4,7 @@ API_URL = get_env_variable("API_URL") WEB_URL = get_env_variable("WEB_URL") +ENVRIMENT = get_env_variable("PETERCAT_ENV", "development") client = TestClient(app) @@ -11,6 +12,7 @@ def test_health_checker(): response = client.get("/api/health_checker") assert response.status_code == 200 assert response.json() == { + 'ENVRIMENT': 'development', 'API_URL': API_URL, 'CALLBACK_URL': f'{API_URL}/api/auth/callback', 'WEB_URL': WEB_URL,