File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2738,18 +2738,18 @@ class Settings(BaseSettings):
27382738
27392739def test_case_insensitive_nested_optional (env ):
27402740 class NestedSettings (BaseModel ):
2741- FOO : str = Field (..., alias = 'Foo' )
2741+ FOO : str
27422742 BaR : int
27432743
27442744 class Settings (BaseSettings ):
27452745 model_config = SettingsConfigDict (env_nested_delimiter = '__' , case_sensitive = False )
27462746
2747- nEstEd : Optional [NestedSettings ] = Field (..., alias = 'NesTed' )
2747+ nested : Optional [NestedSettings ]
27482748
27492749 env .set ('nested__FoO' , 'string' )
27502750 env .set ('nested__bar' , '123' )
27512751 s = Settings ()
2752- assert s .model_dump () == {'nEstEd ' : {'BaR' : 123 , 'FOO' : 'string' }}
2752+ assert s .model_dump () == {'nested ' : {'BaR' : 123 , 'FOO' : 'string' }}
27532753
27542754
27552755def test_case_insensitive_nested_list (env ):
You can’t perform that action at this time.
0 commit comments