From aa3261779e3406421ba9f861dab17d96ebf5affc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 29 Oct 2025 14:02:37 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Add=20test=20from=20coverage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_no_schema_split.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_no_schema_split.py b/tests/test_no_schema_split.py index cad68d3b0..bddb8ecb3 100644 --- a/tests/test_no_schema_split.py +++ b/tests/test_no_schema_split.py @@ -43,6 +43,15 @@ async def create_message(input_message: str) -> Message: client = TestClient(app) +def test_create_message(): + response = client.post("/messages", params={"input_message": "Hello"}) + assert response.status_code == 200, response.text + assert response.json() == { + "input": "Hello", + "output": {"body": "Processed: Hello", "events": []}, + } + + def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text