Skip to content

Commit

Permalink
chore: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xingwanying committed Dec 16, 2024
1 parent ee0586d commit a7614f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions server/tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
from fastapi.testclient import TestClient

from env import ENVIRONMENT, WEB_URL, API_URL
from petercat_utils import get_env_variable
from main import app

Check failure on line 4 in server/tests/test_main.py

View workflow job for this annotation

GitHub Actions / build

Ruff (F401)

tests/test_main.py:4:28: F401 `petercat_utils.get_env_variable` imported but unused

client = TestClient(app)


def test_health_checker():
response = client.get("/api/health_checker")
assert response.status_code == 200
assert response.json() == {
'ENVIRONMENT': ENVIRONMENT,
'API_URL': API_URL,
'CALLBACK_URL': f'{API_URL}/api/auth/callback',
'WEB_URL': WEB_URL,
}
"ENVIRONMENT": ENVIRONMENT,
"API_URL": API_URL,
"CALLBACK_URL": f"{API_URL}/api/auth/callback",
"WEB_URL": WEB_URL,
}

0 comments on commit a7614f1

Please sign in to comment.