huskies: merge 864
This commit is contained in:
@@ -421,6 +421,9 @@ mod tests {
|
||||
"9901_test",
|
||||
"2_current",
|
||||
"---\nname: Test\n---\n## AC\n- [ ] First\n- [x] Done\n- [ ] Second\n",
|
||||
crate::db::ItemMeta::from_yaml(
|
||||
"---\nname: Test\n---\n## AC\n- [ ] First\n- [x] Done\n- [ ] Second\n",
|
||||
),
|
||||
);
|
||||
|
||||
let ctx = test_ctx(tmp.path());
|
||||
@@ -514,6 +517,7 @@ mod tests {
|
||||
"9906_story_persist",
|
||||
"2_current",
|
||||
"---\nname: Persist\n---\n# Story\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Persist\n---\n# Story\n"),
|
||||
);
|
||||
|
||||
let ctx = test_ctx(tmp.path());
|
||||
@@ -547,7 +551,12 @@ mod tests {
|
||||
// Write story content to CRDT with a pre-populated Test Results section
|
||||
let story_content = "---\nname: Persist\n---\n# Story\n\n## Test Results\n\n<!-- huskies-test-results: {\"unit\":[{\"name\":\"u1\",\"status\":\"pass\",\"details\":null}],\"integration\":[{\"name\":\"i1\",\"status\":\"pass\",\"details\":null}]} -->\n";
|
||||
crate::db::ensure_content_store();
|
||||
crate::db::write_item_with_content("9905_story_file_only", "2_current", story_content);
|
||||
crate::db::write_item_with_content(
|
||||
"9905_story_file_only",
|
||||
"2_current",
|
||||
story_content,
|
||||
crate::db::ItemMeta::from_yaml(story_content),
|
||||
);
|
||||
|
||||
let ctx = test_ctx(tmp.path());
|
||||
|
||||
@@ -618,6 +627,9 @@ mod tests {
|
||||
"9997_empty_branch",
|
||||
"2_current",
|
||||
"---\nname: Empty Branch Test\n---\n## AC\n- [ ] Implement the feature\n",
|
||||
crate::db::ItemMeta::from_yaml(
|
||||
"---\nname: Empty Branch Test\n---\n## AC\n- [ ] Implement the feature\n",
|
||||
),
|
||||
);
|
||||
|
||||
let ctx = test_ctx(tmp.path());
|
||||
@@ -672,6 +684,9 @@ mod tests {
|
||||
"9904_test",
|
||||
"2_current",
|
||||
"---\nname: Test\n---\n## AC\n- [ ] First criterion\n- [x] Already done\n",
|
||||
crate::db::ItemMeta::from_yaml(
|
||||
"---\nname: Test\n---\n## AC\n- [ ] First criterion\n- [x] Already done\n",
|
||||
),
|
||||
);
|
||||
|
||||
let ctx = test_ctx(tmp.path());
|
||||
@@ -711,6 +726,9 @@ mod tests {
|
||||
"9905_test",
|
||||
"2_current",
|
||||
"---\nname: Test\n---\n## Acceptance Criteria\n- [ ] Keep me\n- [ ] Remove me\n",
|
||||
crate::db::ItemMeta::from_yaml(
|
||||
"---\nname: Test\n---\n## Acceptance Criteria\n- [ ] Keep me\n- [ ] Remove me\n",
|
||||
),
|
||||
);
|
||||
|
||||
let ctx = test_ctx(tmp.path());
|
||||
@@ -732,6 +750,9 @@ mod tests {
|
||||
"9906_test",
|
||||
"2_current",
|
||||
"---\nname: Test\n---\n## Acceptance Criteria\n- [ ] Only one\n",
|
||||
crate::db::ItemMeta::from_yaml(
|
||||
"---\nname: Test\n---\n## Acceptance Criteria\n- [ ] Only one\n",
|
||||
),
|
||||
);
|
||||
|
||||
let ctx = test_ctx(tmp.path());
|
||||
|
||||
Reference in New Issue
Block a user