Helper to verify task instructions content
(ctx: &AppContext, task: &Task, expected_content: &str)
| 717 | |
| 718 | /// Helper to verify task instructions content |
| 719 | async fn verify_instructions_content(ctx: &AppContext, task: &Task, expected_content: &str) { |
| 720 | let instructions_path = ctx |
| 721 | .tsk_env() |
| 722 | .data_dir() |
| 723 | .join("tasks") |
| 724 | .join(&task.id) |
| 725 | .join(&task.instructions_file); |
| 726 | let content = crate::file_system::read_file(&instructions_path) |
| 727 | .await |
| 728 | .unwrap(); |
| 729 | assert!(content.contains(expected_content)); |
| 730 | } |
| 731 | |
| 732 | #[tokio::test] |
| 733 | async fn test_task_builder_basic() { |