codex/backend-optimization #2

Merged
imelon merged 11 commits from codex/backend-optimization into master 2026-06-05 11:36:19 +08:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit 7d983d611c - Show all commits
+2 -1
View File
@@ -19,7 +19,8 @@ class Config(BaseSettings):
HELPER_ID: str = '' HELPER_ID: str = ''
model_config = SettingsConfigDict( model_config = SettingsConfigDict(
env_file=('config/.env', 'config/.env.dev', 'config/.env.prod') env_file=('config/.env', 'config/.env.dev', 'config/.env.prod'),
extra='ignore',
) )
+5
View File
@@ -0,0 +1,5 @@
from config.main import Config
def test_config_ignores_extra_environment_fields():
assert Config.model_config.get('extra') == 'ignore'