mirror of
https://github.com/codewhale-hq/Codewhale.git
synced 2026-11-08 17:10:50 -10:00
test(config): use the supported concise verbosity in save fixtures
Six typed-save fixtures used quiet even though the validated enum accepts normal, concise and verbose. Use concise for these writes; preserve the separate raw legacy-load coverage. Six focused config tests passed, zero failed. Shared source gate: npm test674 passed/0 failed; check:web passed. No production configuration behavior changed. Signed-off-by: Hunter B <[email protected]>
This commit is contained in:
1 parent
83d0df54b0
commit
979c35e6cc
1 file changed
+4
-4
@@ -10281,7 +10281,7 @@ fn typed_save_round_trips_every_builtin_provider_selector() {
|
||||
};
|
||||
store
|
||||
.config
|
||||
.set_value("verbosity", "quiet")
|
||||
.set_value("verbosity", "concise")
|
||||
.expect("set verbosity");
|
||||
store.save().expect("typed save");
|
||||
let reloaded = ConfigStore::load(Some(path.clone()))
|
||||
@@ -10299,7 +10299,7 @@ fn legacy_siliconflow_cn_spelling_loads_and_is_repaired_on_save() {
|
||||
assert_eq!(store.config.provider, ProviderKind::SiliconflowCN);
|
||||
store
|
||||
.config
|
||||
.set_value("verbosity", "quiet")
|
||||
.set_value("verbosity", "concise")
|
||||
.expect("set verbosity");
|
||||
store.save().expect("typed save");
|
||||
let body = fs::read_to_string(&path).expect("read config");
|
||||
@@ -10318,7 +10318,7 @@ fn typed_save_keeps_a_providers_section_holding_only_a_legacy_kind_table() {
|
||||
};
|
||||
store
|
||||
.config
|
||||
.set_value("verbosity", "quiet")
|
||||
.set_value("verbosity", "concise")
|
||||
.expect("set verbosity");
|
||||
store.save().expect("typed save");
|
||||
let body = fs::read_to_string(&path).expect("read config");
|
||||
@@ -10342,7 +10342,7 @@ fn typed_save_keeps_runtime_owned_keys_in_typed_sub_tables() {
|
||||
let mut store = ConfigStore::load(Some(path.clone())).expect("load config");
|
||||
store
|
||||
.config
|
||||
.set_value("verbosity", "quiet")
|
||||
.set_value("verbosity", "concise")
|
||||
.expect("set verbosity");
|
||||
store.save().expect("typed save");
|
||||
let saved: toml::Table = toml::from_str(&fs::read_to_string(&path).expect("read config"))
|
||||
|
||||
Reference in new issue
Block a user