File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 22from unittest .mock import MagicMock
33
44import litestar
5+ import pytest
56from litestar import status_codes
67from litestar .middleware .base import MiddlewareProtocol
78from litestar .testing import AsyncTestClient
1314from microbootstrap .bootstrappers .fastapi import FastApiBootstrapper # noqa: F401
1415
1516
16- async def test_litestar_configure_instrument () -> None :
17+ @pytest .mark .parametrize ("logging_turn_off_middleware" , [True , False ])
18+ async def test_litestar_configure_instrument (logging_turn_off_middleware : bool ) -> None :
1719 test_metrics_path : typing .Final = "/test-metrics-path"
1820
1921 application : typing .Final = (
20- LitestarBootstrapper (LitestarSettings ())
22+ LitestarBootstrapper (
23+ LitestarSettings (logging_turn_off_middleware = logging_turn_off_middleware , service_debug = False )
24+ )
2125 .configure_instrument (
2226 LitestarPrometheusConfig (prometheus_metrics_path = test_metrics_path ),
2327 )
You can’t perform that action at this time.
0 commit comments