Skip to content

Commit

Permalink
test: add override tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ovsds committed Dec 17, 2024
1 parent 7162ffd commit 79aee6b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/dl_settings/dl_settings_tests/unit/base/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ class NestedSettings(dl_settings.BaseSettings):
class Settings(dl_settings.BaseRootSettings):
nested: NestedSettings = pydantic.Field(default_factory=NestedSettings)

config = {"nested": {"field2": "config_value"}}
config = {
"nested": {
"field1": "config_value",
"field2": "config_value",
}
}
config_path = tmp_configs.add(config)

monkeypatch.setenv("NESTED__FIELD1", "env_value")
Expand Down

0 comments on commit 79aee6b

Please sign in to comment.