Browse Source

update testfile

Signed-off-by: Jan Vollmer <[email protected]>
pull/10589/head
Jan Vollmer 6 months ago
parent
commit
78a48a82ae
No known key found for this signature in database GPG Key ID: 19473D3A5AB433DA
  1. 4
      tests/test_route_deferred_init.py

4
tests/test_route_deferred_init.py

@ -1,5 +1,5 @@
from itertools import chain from itertools import chain
from typing import List, Optional from typing import Optional
from fastapi import APIRouter, Depends, FastAPI from fastapi import APIRouter, Depends, FastAPI
from fastapi.routing import APIRoute from fastapi.routing import APIRoute
@ -28,7 +28,7 @@ def check_if_initialized(route: APIRoute, should_not: bool = False):
def create_test_router( def create_test_router(
routes: Optional[List[BaseRoute]] = None, defer_init: bool = True routes: Optional[list[BaseRoute]] = None, defer_init: bool = True
): ):
router = APIRouter(routes=routes or [], defer_init=defer_init) router = APIRouter(routes=routes or [], defer_init=defer_init)

Loading…
Cancel
Save