Make Settings immutable (frozen=True) and fix all test mutations
- Add frozen=True to SettingsConfigDict in navi/config.py
- Convert model_validator to mode="before" since mode="after" cannot mutate frozen instances
- Replace all field-level monkeypatches in tests with whole-Settings object replacement
- Ensure cross-module settings consistency (content_store, session_files, share_file, content_publish, filesystem)

392 passed, 1 skipped

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent d2695c7 commit a97c203c3197247697223158af18f4d047e9381c
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 18 May
Showing 10 changed files
View
navi/config.py
View
tests/integration/conftest.py
View
tests/unit/api/test_session_files.py
View
tests/unit/core/test_context_builder.py
View
tests/unit/core/test_registry.py
View
tests/unit/llm/test_ollama.py
View
tests/unit/test_content_store.py
View
tests/unit/tools/test_content_publish.py
View
tests/unit/tools/test_filesystem.py
View
tests/unit/tools/test_share_file.py