Skip to content

Commit 4cf7c8c

Browse files
committed
no cover cors
1 parent fe52027 commit 4cf7c8c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/idom/server/fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _setup_application(self, config: Config, app: FastAPI) -> None:
6767
self._setup_static_files(config, app)
6868

6969
cors_config = config["cors"]
70-
if cors_config:
70+
if cors_config: # pragma: no cover
7171
cors_params = (
7272
cors_config
7373
if isinstance(cors_config, dict)

src/idom/server/sanic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _setup_application(self, config: Config, app: Sanic) -> None:
6060
self._setup_blueprint_routes(config, bp)
6161

6262
cors_config = config["cors"]
63-
if cors_config:
63+
if cors_config: # pragma: no cover
6464
cors_params = cors_config if isinstance(cors_config, dict) else {}
6565
CORS(bp, **cors_params)
6666

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def server_mount_point():
6969
7070
The ``mount`` and ``server`` fixtures use this.
7171
"""
72-
with ServerMountPoint(server_config={"cors": True}) as mount_point:
72+
with ServerMountPoint() as mount_point:
7373
yield mount_point
7474

7575

0 commit comments

Comments
 (0)