Skip to content

Commit 0c5ac7e

Browse files
author
Andrei Neagu
committed
fixed tests
1 parent ab28ae1 commit 0c5ac7e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

services/payments/src/simcore_service_payments/core/settings.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from models_library.basic_types import NonNegativeDecimal
55
from pydantic import (
66
AliasChoices,
7-
ConfigDict,
87
EmailStr,
98
Field,
109
PositiveFloat,
@@ -63,8 +62,6 @@ def LOG_LEVEL(self): # noqa: N802
6362
def valid_log_level(cls, value: str) -> str:
6463
return cls.validate_log_level(value)
6564

66-
model_config = ConfigDict(extra="allow") # type:ignore[assignment]
67-
6865

6966
class ApplicationSettings(_BaseApplicationSettings):
7067
"""Web app's environment variables

services/payments/tests/unit/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_list_settings(cli_runner: CliRunner, app_environment: EnvVarsDict):
5050
assert result.exit_code == os.EX_OK, _format_cli_error(result)
5151

5252
print(result.output)
53-
settings = ApplicationSettings.model_validate_json(result.output)
53+
settings = ApplicationSettings(result.output)
5454
assert settings.model_dump() == ApplicationSettings.create_from_envs().model_dump()
5555

5656

0 commit comments

Comments
 (0)