Files
CoPay/backend/app/tests/api/utils/test_routes.py
T
2024-11-17 02:31:42 +03:00

12 lines
280 B
Python

from fastapi.testclient import TestClient
from app.api.utils.routers import utils_router
client = TestClient(utils_router)
def test_read_main():
response = client.get('/health-check')
assert response.status_code == 200
assert response.json() == {'msg': 'healthy'}