Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 12, 2024
1 parent 6bf7210 commit d913feb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/cores/mega/test_microservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)
Expand Down

0 comments on commit d913feb

Please sign in to comment.