Skip to content

Commit 610d076

Browse files
committed
Remove usage of uvicorn. Add task for generating the e2e openapi documen
1 parent faba196 commit 610d076

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import uvicorn
1+
from . import generate_openapi_json
22

3-
from . import app
4-
5-
uvicorn.run(app)
3+
generate_openapi_json()

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ isort .\
5656
&& mypy openapi_python_client\
5757
&& pytest --cov openapi_python_client tests\
5858
"""
59+
openapi = "python -m end_to_end_tests.fastapi_app"
5960
gm = "python -m end_to_end_tests.regen_golden_master"
6061
e2e = "pytest openapi_python_client end_to_end_tests"
6162

0 commit comments

Comments
 (0)