Browse Source

🎨 Auto format

pull/15235/head
pre-commit-ci-lite[bot] 4 months ago
committed by GitHub
parent
commit
fc21d83c5c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      test_mount_subrouter.py

5
test_mount_subrouter.py

@ -1,5 +1,6 @@
"""Test for issue #10180: Mounting sub-applications under APIRouter.""" """Test for issue #10180: Mounting sub-applications under APIRouter."""
from fastapi import FastAPI, APIRouter
from fastapi import APIRouter, FastAPI
from starlette.testclient import TestClient from starlette.testclient import TestClient
@ -56,11 +57,13 @@ def test_mount_multiple_subapps():
api_router = APIRouter(prefix="/v1") api_router = APIRouter(prefix="/v1")
sub1 = FastAPI() sub1 = FastAPI()
@sub1.get("/hello") @sub1.get("/hello")
def hello(): def hello():
return {"msg": "hello"} return {"msg": "hello"}
sub2 = FastAPI() sub2 = FastAPI()
@sub2.get("/world") @sub2.get("/world")
def world(): def world():
return {"msg": "world"} return {"msg": "world"}

Loading…
Cancel
Save