From d913feb5a580b80e2c26813f835614f2a820f357 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 02:25:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/cores/mega/test_microservice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/cores/mega/test_microservice.py b/tests/cores/mega/test_microservice.py index 4a3afba5a..37a373813 100644 --- a/tests/cores/mega/test_microservice.py +++ b/tests/cores/mega/test_microservice.py @@ -7,7 +7,7 @@ from fastapi.testclient import TestClient -from comps import TextDoc, opea_microservices, register_microservice, MicroService +from comps import MicroService, TextDoc, opea_microservices, register_microservice @register_microservice(name="s1", host="0.0.0.0", port=8080, endpoint="/v1/add") @@ -18,9 +18,11 @@ async def add(request: TextDoc) -> TextDoc: text += "OPEA Project!" return {"text": text} + def sum_test(): return 1 + 1 + class TestMicroService(unittest.TestCase): def setUp(self): self.client = TestClient(opea_microservices["s1"].app)