"""Tests for system health and basic connectivity."""

import pytest
from httpx import AsyncClient


@pytest.mark.asyncio
class TestHealth:
    """Health check & basic liveness."""

    async def test_health_endpoint(self, client: AsyncClient):
        resp = await client.get("/health")
        assert resp.status_code == 200
        body = resp.json()
        assert body["status"] == "ok"
        assert body["app"] == "zm-rag"
        assert "version" in body

    async def test_not_found(self, client: AsyncClient):
        resp = await client.get("/nonexistent")
        assert resp.status_code == 404
