Skip to content

Commit 52766b6

Browse files
committed
fix: change import
1 parent d2a45a9 commit 52766b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_lifespan.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
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
13+
from stac_auth_proxy.lifespan import check_conformance, check_server_health
1414
from stac_auth_proxy.utils.middleware import required_conformance
1515

1616

@@ -97,7 +97,7 @@ def test_lifespan_reusable():
9797
new=AsyncMock(),
9898
) as mock_conf:
9999
app = FastAPI(
100-
lifespan=lifespan_handler(
100+
lifespan=build_lifespan(
101101
upstream_url=upstream_url,
102102
oidc_discovery_url=oidc_discovery_url,
103103
)

0 commit comments

Comments
 (0)