diff --git a/crates/ledger-cli/tests/common/mod.rs b/crates/ledger-cli/tests/common/mod.rs index 027eb9d..05659c1 100644 --- a/crates/ledger-cli/tests/common/mod.rs +++ b/crates/ledger-cli/tests/common/mod.rs @@ -78,8 +78,12 @@ impl Home { } } + /// The root `setup --home` made: the platform's data folder under the + /// home (`.local/share` on Linux, `Library/Application Support` on + /// macOS), never a Linux path spelled out (the portable macOS job + /// found the server refusing a root that was never set up). pub fn root(&self) -> PathBuf { - self.dir.path().join(".local/share/wanderbooks") + ledger_store::root::default_root(self.dir.path()) } pub fn run(&self) -> PathBuf { diff --git a/crates/ledger-cli/tests/oracle_mcp.rs b/crates/ledger-cli/tests/oracle_mcp.rs index 564d5fa..061c7bc 100644 --- a/crates/ledger-cli/tests/oracle_mcp.rs +++ b/crates/ledger-cli/tests/oracle_mcp.rs @@ -3497,11 +3497,14 @@ fn cpa_package_holds_the_year_and_its_evidence() { // and the em dashes of the depreciation memos: written differently, so // said, the memos grouped (four lines for one name and four memos), in // warnings and the README alike. + // (The audit notice P8 adds while no counted audit stands behind the + // package is a warning too; it is not about the IIF.) let warnings: Vec = out["warnings"] .as_array() .unwrap() .iter() .map(|w| w.as_str().unwrap().to_string()) + .filter(|w| !w.starts_with("No counted audit")) .collect(); assert_eq!(warnings.len(), 4, "{out}"); let readme = std::str::from_utf8(&files["README.txt"]).unwrap();