"""Template endpoints tests (S5-T07).""" from httpx import AsyncClient async def test_get_default_cost_items(client: AsyncClient) -> None: resp = await client.get("/api/templates/cost-items") assert resp.status_code == 200 items = resp.json() assert isinstance(items, list) assert len(items) > 0 first = items[0] assert "id" in first assert "name" in first assert "basis" in first async def test_get_phasing_templates(client: AsyncClient) -> None: resp = await client.get("/api/templates/phasing") assert resp.status_code == 200 templates = resp.json() assert isinstance(templates, dict) assert "solar_standard_18mo" in templates