Skip to content

Commit 84bd950

Browse files
committed
Remove CliApp call.
1 parent d1ab119 commit 84bd950

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

3434
from pydantic_settings import (
3535
BaseSettings,
36-
CliApp,
3736
DotEnvSettingsSource,
3837
EnvSettingsSource,
3938
InitSettingsSource,
@@ -637,7 +636,7 @@ class Settings(BaseSettings):
637636
v0: str = 'ok'
638637
sub_model: SubModel = SubModel(v1='top default', v3=33)
639638

640-
assert CliApp.run(Settings, cli_args=['--sub-model.v1=cli']).model_dump() == {
639+
assert Settings(**{'sub-model': {'v1': 'cli'}}).model_dump() == {
641640
'v0': 'ok',
642641
'sub_model': {'v1': 'cli', 'v2': b'hello', 'v3': 33},
643642
}

0 commit comments

Comments
 (0)