Skip to content

Commit 0f9af63

Browse files
committed
fix: change import
1 parent d2a45a9 commit 0f9af63

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_lifespan.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
from starlette.middleware import Middleware
1010
from starlette.types import ASGIApp
1111

12-
from stac_auth_proxy import check_conformance, check_server_health
13-
from stac_auth_proxy import lifespan as lifespan_handler
12+
from stac_auth_proxy import build_lifespan, check_conformance, check_server_health
1413
from stac_auth_proxy.utils.middleware import required_conformance
1514

1615

@@ -97,7 +96,7 @@ def test_lifespan_reusable():
9796
new=AsyncMock(),
9897
) as mock_conf:
9998
app = FastAPI(
100-
lifespan=lifespan_handler(
99+
lifespan=build_lifespan(
101100
upstream_url=upstream_url,
102101
oidc_discovery_url=oidc_discovery_url,
103102
)

0 commit comments

Comments
 (0)