Skip to content

Commit cda71a8

Browse files
committed
Fix tests
1 parent 2f8857f commit cda71a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/instruments/test_swagger.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def test_swagger_teardown(
3939

4040

4141
def test_litestar_swagger_bootstrap_online_docs(minimal_swagger_config: SwaggerConfig) -> None:
42+
minimal_swagger_config.swagger_offline_docs = False
4243
swagger_instrument: typing.Final = LitestarSwaggerInstrument(minimal_swagger_config)
4344

4445
swagger_instrument.bootstrap()
@@ -52,7 +53,6 @@ def test_litestar_swagger_bootstrap_online_docs(minimal_swagger_config: SwaggerC
5253

5354

5455
def test_litestar_swagger_bootstrap_offline_docs(minimal_swagger_config: SwaggerConfig) -> None:
55-
minimal_swagger_config.swagger_offline_docs = True
5656
swagger_instrument: typing.Final = LitestarSwaggerInstrument(minimal_swagger_config)
5757

5858
swagger_instrument.bootstrap()
@@ -72,6 +72,7 @@ async def test_litestar_swagger_bootstrap_working_online_docs(
7272
minimal_swagger_config: SwaggerConfig,
7373
) -> None:
7474
minimal_swagger_config.swagger_path = "/my-docs-path"
75+
minimal_swagger_config.swagger_offline_docs = False
7576
swagger_instrument: typing.Final = LitestarSwaggerInstrument(minimal_swagger_config)
7677

7778
swagger_instrument.bootstrap()
@@ -88,7 +89,6 @@ async def test_litestar_swagger_bootstrap_working_offline_docs(
8889
minimal_swagger_config: SwaggerConfig,
8990
) -> None:
9091
minimal_swagger_config.service_static_path = "/my-static-path"
91-
minimal_swagger_config.swagger_offline_docs = True
9292
swagger_instrument: typing.Final = LitestarSwaggerInstrument(minimal_swagger_config)
9393

9494
swagger_instrument.bootstrap()
@@ -116,6 +116,7 @@ async def test_fastapi_swagger_bootstrap_working_online_docs(
116116
minimal_swagger_config: SwaggerConfig,
117117
) -> None:
118118
minimal_swagger_config.swagger_path = "/my-docs-path"
119+
minimal_swagger_config.swagger_offline_docs = False
119120
swagger_instrument: typing.Final = FastApiSwaggerInstrument(minimal_swagger_config)
120121

121122
swagger_instrument.bootstrap()
@@ -132,7 +133,6 @@ async def test_fastapi_swagger_bootstrap_working_offline_docs(
132133
minimal_swagger_config: SwaggerConfig,
133134
) -> None:
134135
minimal_swagger_config.service_static_path = "/my-static-path"
135-
minimal_swagger_config.swagger_offline_docs = True
136136
swagger_instrument: typing.Final = FastApiSwaggerInstrument(minimal_swagger_config)
137137
fastapi_application = fastapi.FastAPI(
138138
**swagger_instrument.bootstrap_before(),

0 commit comments

Comments
 (0)