mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 22:44:31 +00:00
Add _validate_cfg_values() to knoe/ui/screens/cfg.py — called before _filter_cfg_values_for_persistence so MagicMock (or any non-str) widget values raise TypeError instead of being silently str()-coerced into conf/<mode>.cfg. Also re-raise TypeError/ValueError from _save_knoe_cfg so the error escapes the outer broad except-Exception handler. New test: tests/installer/test_cfg_save_refuses_mock_values.py - test_save_knoe_cfg_refuses_non_string_widget_values: MagicMock vars → TypeError - test_save_knoe_cfg_real_strings_produce_clean_cfg: real _Var stubs → clean cfg Fixes TODO-1 / tracked in docs/completed/todo-1-cfg-save-path-bug.md. conf/k3d.cfg and conf/k3s.cfg still contain stale MagicMock values from before this fix and must be regenerated before committing. Co-authored-by: Junie <junie@jetbrains.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| argocd.py | ||
| base.py | ||
| build.py | ||
| cfg.py | ||
| cluster_nodes.py | ||
| cluster.py | ||
| database_options.py | ||
| database.py | ||
| dependencies.py | ||
| deploy.py | ||
| docker.py | ||
| environment.py | ||
| gitops.py | ||
| knoe_users.py | ||
| navigation.py | ||
| network.py | ||
| ollama.py | ||
| packaging.py | ||
| security.py | ||
| services.py | ||
| supabase.py | ||
| validate.py | ||
| welcome.py | ||