From 0373b90b65d21e57b86671f50d41d4e507c91dae Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sun, 20 Sep 2026 17:08:21 +0300 Subject: [PATCH] test: drop FromPath so the litestar suite runs at the declared floor Refs #242 --- tests/test_litestar_bootstrap.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_litestar_bootstrap.py b/tests/test_litestar_bootstrap.py index 26288af..42a73b1 100644 --- a/tests/test_litestar_bootstrap.py +++ b/tests/test_litestar_bootstrap.py @@ -15,7 +15,6 @@ from litestar import status_codes from litestar.config.app import AppConfig from litestar.middleware.logging import LoggingMiddlewareConfig -from litestar.params import FromPath from litestar.testing import TestClient from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace import TracerProvider as SDKTracerProvider @@ -134,7 +133,7 @@ def test_litestar_bootstrapper_with_missing_instrument_dependency( def test_litestar_otel_span_naming(litestar_config: LitestarConfig) -> None: @litestar.get("/items/{item_id:int}") - async def get_item(item_id: FromPath[int]) -> dict[str, int]: + async def get_item(item_id: int) -> dict[str, int]: return {"item_id": item_id} config = dataclasses.replace(litestar_config, application_config=AppConfig(route_handlers=[get_item])) @@ -173,7 +172,7 @@ async def log_handler(request: litestar.Request) -> dict[str, str]: def _scrape_prometheus_path_labels(config: LitestarConfig, handler_path: str, request_path: str) -> str: @litestar.get(handler_path) - async def _handler(user_id: FromPath[int]) -> dict[str, int]: + async def _handler(user_id: int) -> dict[str, int]: return {"user_id": user_id} config = dataclasses.replace(config, application_config=AppConfig(route_handlers=[_handler]))