(testrepo: Repository)
| 905 | |
| 906 | |
| 907 | def test_worktree_aspath(testrepo: Repository) -> None: |
| 908 | worktree_name = 'foo' |
| 909 | worktree_dir = Path(tempfile.mkdtemp()) |
| 910 | # Delete temp path so that it's not present when we attempt to add the |
| 911 | # worktree later |
| 912 | worktree_dir.rmdir() |
| 913 | testrepo.add_worktree(worktree_name, worktree_dir) |
| 914 | assert testrepo.list_worktrees() == [worktree_name] |
| 915 | |
| 916 | |
| 917 | def test_worktree_custom_ref(testrepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…