From 79aee6bbf78fd1debdad6c8754ef396fe2c7ce26 Mon Sep 17 00:00:00 2001 From: ovsds Date: Tue, 17 Dec 2024 11:35:07 +0100 Subject: [PATCH] test: add override tests --- .../dl_settings_tests/unit/base/test_settings.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/dl_settings/dl_settings_tests/unit/base/test_settings.py b/lib/dl_settings/dl_settings_tests/unit/base/test_settings.py index 028ba586b..8fb1b4689 100644 --- a/lib/dl_settings/dl_settings_tests/unit/base/test_settings.py +++ b/lib/dl_settings/dl_settings_tests/unit/base/test_settings.py @@ -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")