Skip to content

Commit 2145c09

Browse files
committed
✨ Refactor: Update service specifications and remove redundant null settings in tests
1 parent 1fd7453 commit 2145c09

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

services/catalog/src/simcore_service_catalog/core/settings.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ def base_url(self) -> str:
4646
)
4747

4848

49-
_DEFAULT_SERVICE_SPECIFICATIONS: Final[
50-
ServiceSpecifications
51-
] = ServiceSpecifications.model_validate({})
49+
_DEFAULT_SERVICE_SPECIFICATIONS: Final[ServiceSpecifications] = (
50+
ServiceSpecifications.model_validate({})
51+
)
5252

5353

5454
class ApplicationSettings(BaseApplicationSettings, MixinLoggingSettings):
@@ -88,7 +88,7 @@ class ApplicationSettings(BaseApplicationSettings, MixinLoggingSettings):
8888
] = False
8989

9090
CATALOG_POSTGRES: Annotated[
91-
PostgresSettings | None,
91+
PostgresSettings,
9292
Field(json_schema_extra={"auto_default_from_env": True}),
9393
]
9494

@@ -102,7 +102,7 @@ class ApplicationSettings(BaseApplicationSettings, MixinLoggingSettings):
102102
]
103103

104104
CATALOG_DIRECTOR: Annotated[
105-
DirectorSettings | None,
105+
DirectorSettings,
106106
Field(json_schema_extra={"auto_default_from_env": True}),
107107
]
108108

services/catalog/tests/unit/test_services_director.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def app_environment(
2727
monkeypatch,
2828
{
2929
**app_environment,
30-
"CATALOG_POSTGRES": "null", # disable postgres
3130
"SC_BOOT_MODE": "local-development",
3231
},
3332
)

services/catalog/tests/unit/test_services_manifest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def app_environment(
2626
monkeypatch,
2727
{
2828
**app_environment,
29-
"CATALOG_POSTGRES": "null", # disable postgres
3029
"SC_BOOT_MODE": "local-development",
3130
},
3231
)

0 commit comments

Comments
 (0)