Put the per-project test expects in for lconf()

Put all those per-project configs into the unit test. They're in the
input string, so we should expect to see them in the output struct.
This commit is contained in:
2025-07-17 10:28:17 -05:00
parent 330985940f
commit 15593204e0

View File

@@ -174,7 +174,30 @@ repo = \"rcalc\"
repo: None, repo: None,
token: Some(String::from("fake-token")) token: Some(String::from("fake-token"))
}, },
project_overrides: vec![], project_overrides: vec![
PartialConfig {
project_path: Some(String::from("/home/robert/projects/gt-tool")),
gitea_url: None,
owner: Some(String::from("robert")),
repo: Some(String::from("gt-tool")),
token: None,
},
PartialConfig {
project_path: Some(String::from("/home/robert/projects/rcalc")),
gitea_url: None,
owner: Some(String::from("jamis")),
repo: Some(String::from("rcalc")),
token: None,
},
PartialConfig {
project_path: Some(String::from("/home/robert/projects/rcalc-builders")),
gitea_url: None,
owner: Some(String::from("jamis")),
repo: Some(String::from("rcalc")),
token: None,
},
],
}; };
let conf = lconf(fx_sample_config_string)?; let conf = lconf(fx_sample_config_string)?;
println!(" ->> Test conf: {:?}", conf); println!(" ->> Test conf: {:?}", conf);