Skip to content

Commit a5cc3c6

Browse files
committed
Merge pull request 'Fix #15' (#16) from task/15-impl into main
2 parents d67ce3b + 72ac616 commit a5cc3c6

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

crates/terraphim_orchestrator/src/config.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,6 +1962,27 @@ task = "Run tests"
19621962
assert!(config.agents[0].capabilities.is_empty());
19631963
}
19641964

1965+
#[test]
1966+
fn test_config_parse_project_source() {
1967+
let toml_str = r#"
1968+
working_dir = "/tmp/terraphim"
1969+
1970+
[nightwatch]
1971+
1972+
[compound_review]
1973+
schedule = "0 2 * * *"
1974+
repo_path = "/tmp/repo"
1975+
1976+
[[project_sources]]
1977+
id = "demo"
1978+
root = "/tmp/demo"
1979+
"#;
1980+
let config = OrchestratorConfig::from_toml(toml_str).unwrap();
1981+
assert_eq!(config.project_sources.len(), 1);
1982+
assert_eq!(config.project_sources[0].id, "demo");
1983+
assert_eq!(config.project_sources[0].root, PathBuf::from("/tmp/demo"));
1984+
}
1985+
19651986
#[test]
19661987
fn test_config_parse_full() {
19671988
let toml_str = r#"

0 commit comments

Comments
 (0)