mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2026-01-17 11:40:39 +03:00
add uni tests for user auth
This commit is contained in:
11
tests/api/test_health.py
Normal file
11
tests/api/test_health.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import pytest
|
||||
from fastapi import status
|
||||
from httpx import AsyncClient
|
||||
|
||||
pytestmark = pytest.mark.anyio
|
||||
|
||||
async def test_redis_health(client: AsyncClient):
|
||||
response = await client.get(f"/public/health/redis")
|
||||
assert response.status_code == status.HTTP_200_OK
|
||||
# assert payload["name"] == response.json()["name"]
|
||||
# assert UUID(response.json()["id"])
|
||||
Reference in New Issue
Block a user