import pytest from httpx import AsyncClient @pytest.mark.asyncio async def test_list_fs_transactions(client: AsyncClient): response = await client.get("/plant-fs-transaction-data") assert response.status_code == 200 assert response.json()["message"] == "Data retrieved successfully" @pytest.mark.asyncio async def test_get_fs_charts(client: AsyncClient): response = await client.get("/plant-fs-transaction-data/charts") if response.status_code == 200: assert "items" in response.json()["data"] else: assert response.status_code == 404