File tree Expand file tree Collapse file tree 3 files changed +6
-13
lines changed
{{ cookiecutter.project_slug }}
{{ cookiecutter.project_slug }} Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 11
2- from manaysh_api import __version__
2+ from {{ cookiecutter . project_slug }} import __version__
33
44
55def test_version ():
6- assert __version__ == ' 0.1.0'
6+ assert __version__ == " 0.1.0"
77
88
99def test_health (client ):
Original file line number Diff line number Diff line change 1- __version__ = ' 0.1.0'
1+ __version__ = " 0.1.0"
Original file line number Diff line number Diff line change 1-
21from fastapi import APIRouter , FastAPI
32from pydantic import BaseModel
43
@@ -12,22 +11,16 @@ class MessageResponse(BaseModel):
1211
1312@api_v1_router .get ("/dummy" )
1413def dummy () -> MessageResponse :
15- return MessageResponse (
16- msg = "I'm dummy"
17- )
14+ return MessageResponse (msg = "I'm dummy" )
1815
1916
2017def 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
You can’t perform that action at this time.
0 commit comments