File tree Expand file tree Collapse file tree
crates/terraphim_orchestrator/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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#"
You can’t perform that action at this time.
0 commit comments