xtablo-source/backend/backend/tests/api/api_v1/test_utils.py
Arthur Belleville 50ba9b340b
Modify backend
2025-03-15 08:46:51 +01:00

13 lines
349 B
Python

from fastapi.testclient import TestClient
from app.core.config import settings
def test_get_item(client: TestClient) -> None:
"""Test get item by id endpoint"""
# Make request
response = client.get(f"{settings.API_V1_STR}/utils/health-check/")
# Assert response
assert response.status_code == 200
assert response.content