(is_interactive: bool)
| 1014 | } |
| 1015 | |
| 1016 | fn create_test_task(is_interactive: bool) -> Task { |
| 1017 | let repo_path = PathBuf::from("/tmp/test-repo"); |
| 1018 | Task { |
| 1019 | id: "test-task-id".to_string(), |
| 1020 | repo_root: repo_path.clone(), |
| 1021 | task_type: "feature".to_string(), |
| 1022 | instructions_file: "/tmp/test-repo/.tsk/tasks/instructions.md".to_string(), |
| 1023 | status: TaskStatus::Running, |
| 1024 | started_at: Some(chrono::Utc::now()), |
| 1025 | branch_name: "tsk/feature/test-task/test-task-id".to_string(), |
| 1026 | copied_repo_path: Some(repo_path), |
| 1027 | is_interactive, |
| 1028 | ..Task::test_default() |
| 1029 | } |
| 1030 | } |
| 1031 | |
| 1032 | #[tokio::test] |
| 1033 | async fn test_run_task_container_success() { |
no outgoing calls