File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/settings-library/tests Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1313"""
1414
1515from common_library .pydantic_fields_extension import is_nullable
16- from pydantic import BaseSettings , ValidationInfo , field_validator
16+ from pydantic import ValidationInfo , field_validator
1717from pydantic .fields import PydanticUndefined
1818from pydantic_settings import BaseSettings
1919from pytest_simcore .helpers .monkeypatch_envs import setenvs_from_dict
@@ -135,17 +135,17 @@ def test_construct(monkeypatch):
135135 VALUE_NULLABLE_REQUIRED = None ,
136136 VALUE_NULLABLE_REQUIRED_AS_WELL = None ,
137137 VALUE_REQUIRED_AS_WELL = 10 ,
138- VALUE_ALSO_REQUIRED = 10 ,
139138 )
140139 print (settings_from_init .model_dump_json (exclude_unset = True , indent = 1 ))
141140
142141 # from env vars
143142 setenvs_from_dict (
144143 monkeypatch ,
145144 {
146- "VALUE" : "1" ,
147- "VALUE_ALSO_REQUIRED" : "10" ,
145+ "VALUE_NULLABLE_REQUIRED_AS_WELL" : "null" ,
148146 "VALUE_NULLABLE_REQUIRED" : "null" ,
147+ "VALUE_REQUIRED_AS_WELL" : "10" ,
148+ "VALUE" : "1" ,
149149 },
150150 ) # WARNING: set this env to None would not work w/o ``parse_none`` validator! bug???
151151
You can’t perform that action at this time.
0 commit comments