Helper to create a standard test context with real file system and git operations Returns (git_repo, AppContext)
()
| 691 | /// Helper to create a standard test context with real file system and git operations |
| 692 | /// Returns (git_repo, AppContext) |
| 693 | async fn create_test_context() -> (crate::test_utils::TestGitRepository, AppContext) { |
| 694 | use crate::test_utils::TestGitRepository; |
| 695 | |
| 696 | let test_repo = TestGitRepository::new().unwrap(); |
| 697 | test_repo.init_with_commit().unwrap(); |
| 698 | let ctx = AppContext::builder().build(); |
| 699 | |
| 700 | (test_repo, ctx) |
| 701 | } |
| 702 | |
| 703 | /// Helper function to create a basic task for testing |
| 704 | async fn create_basic_task(name: &str, prompt: &str) -> Task { |