test(sbom): the licence summary serialises its category and confirmed count
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Failing after 7m13s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-10-15 13:45:43 +02:00
1 parent 74eb8b7647
commit 887bd62986
1 file changed
+4
+4
View File
@@ -668,12 +668,16 @@ mod tests {
license: "MIT".to_string(),
count: 42,
is_copyleft: false,
category: compliance_core::models::LicenseCategory::Permissive,
confirmed: 3,
packages: vec!["serde".to_string()],
};
let v = serde_json::to_value(&ls).unwrap();
assert_eq!(v["license"], "MIT");
assert_eq!(v["is_copyleft"], false);
assert_eq!(v["count"], 42);
assert_eq!(v["category"], "permissive");
assert_eq!(v["confirmed"], 3);
}
// ── Default helper functions ─────────────────────────────────