We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2a45a9 commit 0f9af63Copy full SHA for 0f9af63
tests/test_lifespan.py
@@ -9,8 +9,7 @@
9
from starlette.middleware import Middleware
10
from starlette.types import ASGIApp
11
12
-from stac_auth_proxy import check_conformance, check_server_health
13
-from stac_auth_proxy import lifespan as lifespan_handler
+from stac_auth_proxy import build_lifespan, check_conformance, check_server_health
14
from stac_auth_proxy.utils.middleware import required_conformance
15
16
@@ -97,7 +96,7 @@ def test_lifespan_reusable():
97
96
new=AsyncMock(),
98
) as mock_conf:
99
app = FastAPI(
100
- lifespan=lifespan_handler(
+ lifespan=build_lifespan(
101
upstream_url=upstream_url,
102
oidc_discovery_url=oidc_discovery_url,
103
)
0 commit comments