test(config): fix helper lint and swarms fixture
This commit is contained in:
parent
d23abdb92d
commit
496bd825bc
@ -8273,7 +8273,9 @@ mod tests {
|
||||
if !merged.is_empty() {
|
||||
merged.push_str("\n\n");
|
||||
}
|
||||
merged.push_str(&format!("[{table}]"));
|
||||
merged.push('[');
|
||||
merged.push_str(table);
|
||||
merged.push(']');
|
||||
}
|
||||
merged.push('\n');
|
||||
toml::from_str(&merged).unwrap()
|
||||
@ -11888,7 +11890,7 @@ require_otp_to_resume = true
|
||||
agents = ["researcher", "writer"]
|
||||
strategy = "sequential"
|
||||
"#;
|
||||
let config: Config = toml::from_str(toml_str).expect("deserialize");
|
||||
let config = parse_test_config(toml_str);
|
||||
assert_eq!(config.agents.len(), 2);
|
||||
assert_eq!(config.swarms.len(), 1);
|
||||
assert!(config.swarms.contains_key("pipeline"));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user