Helper function to create a basic task for testing
(name: &str, prompt: &str)
| 702 | |
| 703 | /// Helper function to create a basic task for testing |
| 704 | async fn create_basic_task(name: &str, prompt: &str) -> Task { |
| 705 | let (test_repo, ctx) = create_test_context().await; |
| 706 | let current_dir = test_repo.path().to_path_buf(); |
| 707 | |
| 708 | TaskBuilder::new() |
| 709 | .repo_root(current_dir) |
| 710 | .name(name.to_string()) |
| 711 | .task_type("generic".to_string()) |
| 712 | .prompt(Some(prompt.to_string())) |
| 713 | .build(&ctx) |
| 714 | .await |
| 715 | .unwrap() |
| 716 | } |
| 717 | |
| 718 | /// Helper to verify task instructions content |
| 719 | async fn verify_instructions_content(ctx: &AppContext, task: &Task, expected_content: &str) { |