huskies: merge 864

This commit is contained in:
dave
2026-04-30 22:23:21 +00:00
parent 3911c24c26
commit 61cf7684de
41 changed files with 540 additions and 71 deletions
+1
View File
@@ -214,6 +214,7 @@ mod tests {
story_id,
"1_backlog",
"---\nname: Service Delete Regression\n---\n",
crate::db::ItemMeta::from_yaml("---\nname: Service Delete Regression\n---\n"),
);
let tmp = tempfile::tempdir().unwrap();
+11 -1
View File
@@ -79,6 +79,7 @@ mod tests {
story_id,
"2_current",
"---\nname: Freeze Service Test\n---\n",
crate::db::ItemMeta::from_yaml("---\nname: Freeze Service Test\n---\n"),
);
let result = freeze(story_id);
@@ -105,6 +106,7 @@ mod tests {
story_id,
"2_current",
"---\nname: Already Frozen\n---\n",
crate::db::ItemMeta::from_yaml("---\nname: Already Frozen\n---\n"),
);
freeze(story_id).expect("first freeze should succeed");
@@ -124,6 +126,7 @@ mod tests {
story_id,
"2_current",
"---\nname: Unfreeze Service Test\n---\n",
crate::db::ItemMeta::from_yaml("---\nname: Unfreeze Service Test\n---\n"),
);
freeze(story_id).expect("freeze should succeed");
@@ -148,7 +151,12 @@ mod tests {
fn unfreeze_not_frozen_item_returns_not_frozen() {
crate::crdt_state::init_for_test();
let story_id = "8783_story_unfreeze_service_not_frozen";
crate::db::write_item_with_content(story_id, "2_current", "---\nname: Not Frozen\n---\n");
crate::db::write_item_with_content(
story_id,
"2_current",
"---\nname: Not Frozen\n---\n",
crate::db::ItemMeta::from_yaml("---\nname: Not Frozen\n---\n"),
);
let result = unfreeze(story_id);
assert!(
@@ -171,6 +179,7 @@ mod tests {
story_a,
"2_current",
"---\nname: Regression Chat Path\n---\n",
crate::db::ItemMeta::from_yaml("---\nname: Regression Chat Path\n---\n"),
);
// Story B simulates the MCP tool path.
@@ -179,6 +188,7 @@ mod tests {
story_b,
"2_current",
"---\nname: Regression MCP Path\n---\n",
crate::db::ItemMeta::from_yaml("---\nname: Regression MCP Path\n---\n"),
);
// Both paths call service::work_item::freeze().