修复AGC配置测试字段
同步配置测试夹具使用 selected_model_id 移除已删除的 model_profiles 与 selected_model_profile_id 字段
This commit is contained in:
@@ -737,8 +737,7 @@ fn app_config_commands_write_runtime_config_file() {
|
||||
},
|
||||
agent_llm,
|
||||
planning: GameCreatorPlanningConfig::default(),
|
||||
model_profiles: Vec::new(),
|
||||
selected_model_profile_id: "default".to_string(),
|
||||
selected_model_id: "default".to_string(),
|
||||
})
|
||||
.expect("write runtime config");
|
||||
|
||||
@@ -824,8 +823,7 @@ fn app_config_write_rejects_invalid_api_kind() {
|
||||
editor_api: GameCreatorEditorApiConfig::default(),
|
||||
agent_llm: BTreeMap::new(),
|
||||
planning: GameCreatorPlanningConfig::default(),
|
||||
model_profiles: Vec::new(),
|
||||
selected_model_profile_id: "default".to_string(),
|
||||
selected_model_id: "default".to_string(),
|
||||
});
|
||||
|
||||
assert!(result
|
||||
@@ -851,8 +849,7 @@ fn app_config_write_rejects_invalid_reasoning_effort() {
|
||||
editor_api: GameCreatorEditorApiConfig::default(),
|
||||
agent_llm: BTreeMap::new(),
|
||||
planning: GameCreatorPlanningConfig::default(),
|
||||
model_profiles: Vec::new(),
|
||||
selected_model_profile_id: "default".to_string(),
|
||||
selected_model_id: "default".to_string(),
|
||||
});
|
||||
|
||||
assert!(result
|
||||
@@ -878,8 +875,7 @@ fn app_config_write_rejects_too_small_request_timeout() {
|
||||
editor_api: GameCreatorEditorApiConfig::default(),
|
||||
agent_llm: BTreeMap::new(),
|
||||
planning: GameCreatorPlanningConfig::default(),
|
||||
model_profiles: Vec::new(),
|
||||
selected_model_profile_id: "default".to_string(),
|
||||
selected_model_id: "default".to_string(),
|
||||
});
|
||||
|
||||
assert!(result
|
||||
|
||||
Reference in New Issue
Block a user