(self)
| 86 | ]) |
| 87 | |
| 88 | def test_active_local_branch(self): |
| 89 | repo = GitCommand() |
| 90 | git_output = join0( |
| 91 | ["*", "refs/heads/master", "refs/remotes/origin/master", "origin", ""] |
| 92 | + date_sha_and_subject) |
| 93 | when(repo).git("for-each-ref", ...).thenReturn(git_output) |
| 94 | when(repo).get_repo_path().thenReturn("yeah/sure") |
| 95 | actual = repo.get_branches() |
| 96 | self.assertEqual(actual, [ |
| 97 | git_mixins.branches.Branch( |
| 98 | "master", |
| 99 | None, |
| 100 | "master", |
| 101 | "89b79cd737465ed308ecc00289d00a6f923f2da5", |
| 102 | "The Subject", |
| 103 | True, |
| 104 | False, |
| 105 | 0, |
| 106 | git_mixins.branches.Upstream( |
| 107 | "origin", "master", "origin/master", "" |
| 108 | ) |
| 109 | ) |
| 110 | ]) |
| 111 | |
| 112 | def test_remote_branch(self): |
| 113 | repo = GitCommand() |
nothing calls this directly
no test coverage detected