Jan Vollmer
6 months ago
No known key found for this signature in database
GPG Key ID: 19473D3A5AB433DA
1 changed files with
2 additions and
2 deletions
-
tests/test_route_deferred_init.py
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
from itertools import chain |
|
|
|
from typing import List, Optional |
|
|
|
from typing import Optional |
|
|
|
|
|
|
|
from fastapi import APIRouter, Depends, FastAPI |
|
|
|
from fastapi.routing import APIRoute |
|
|
|
@ -28,7 +28,7 @@ def check_if_initialized(route: APIRoute, should_not: bool = False): |
|
|
|
|
|
|
|
|
|
|
|
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) |
|
|
|
|
|
|
|
|