(temp_git_repo)
| 121 | |
| 122 | |
| 123 | def test_git_create_checkout_branch(temp_git_repo): |
| 124 | # Make an initial commit to create the HEAD reference |
| 125 | test_file = os.path.join(temp_git_repo.working_dir, "initial.txt") |
| 126 | with open(test_file, "w") as f: |
| 127 | f.write("Initial content") |
| 128 | temp_git_repo.index.add([test_file]) |
| 129 | temp_git_repo.index.commit("Initial commit") |
| 130 | |
| 131 | git_create_checkout_branch(temp_git_repo, "new-branch") |
| 132 | assert temp_git_repo.active_branch.name == "new-branch" |
| 133 | |
| 134 | |
| 135 | def test_git_diff_file(temp_git_repo): |
nothing calls this directly
no test coverage detected
searching dependent graphs…