import pytest from httpx import AsyncClient @pytest.mark.asyncio async def test_get_simulations(client: AsyncClient): response = await client.get("/simulations") assert response.status_code == 200 assert response.json()["message"] == "Data retrieved successfully" @pytest.mark.asyncio async def test_create_simulation(client: AsyncClient): payload = { "label": "Test Simulation", "description": "Test Desc", "version": 1 } response = await client.post("/simulations", json=payload) assert response.status_code == 200 assert response.json()["data"]["label"] == "Test Simulation"