Skip to content

Commit 2ebb39f

Browse files
committed
fix test cov
1 parent 00cdf3a commit 2ebb39f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/bootstrappers/test_litestar.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from unittest.mock import MagicMock
33

44
import litestar
5+
import pytest
56
from litestar import status_codes
67
from litestar.middleware.base import MiddlewareProtocol
78
from litestar.testing import AsyncTestClient
@@ -13,11 +14,14 @@
1314
from 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
)

0 commit comments

Comments
 (0)