Skip to content

Commit 763a282

Browse files
committed
Bug fix and fmt
1 parent e76e8b6 commit 763a282

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

{{ cookiecutter.project_slug }}/tests/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
from manaysh_api import __version__
2+
from {{ cookiecutter.project_slug }} import __version__
33

44

55
def test_version():
6-
assert __version__ == '0.1.0'
6+
assert __version__ == "0.1.0"
77

88

99
def test_health(client):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1.0'
1+
__version__ = "0.1.0"
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
from fastapi import APIRouter, FastAPI
32
from pydantic import BaseModel
43

@@ -12,22 +11,16 @@ class MessageResponse(BaseModel):
1211

1312
@api_v1_router.get("/dummy")
1413
def dummy() -> MessageResponse:
15-
return MessageResponse(
16-
msg="I'm dummy"
17-
)
14+
return MessageResponse(msg="I'm dummy")
1815

1916

2017
def create_app() -> FastAPI:
21-
app = FastAPI(
22-
title="App"
23-
)
18+
app = FastAPI(title="App")
2419

2520
app.include_router(api_v1_router, prefix="/api/v1")
2621

2722
@app.get("/health")
2823
def health() -> MessageResponse:
29-
return MessageResponse(
30-
msg="I'm healthy"
31-
)
24+
return MessageResponse(msg="I'm healthy")
3225

3326
return app

0 commit comments

Comments
 (0)