(testrepo: Repository)
| 158 | |
| 159 | |
| 160 | def test_lookup_branch_local(testrepo: Repository) -> None: |
| 161 | assert testrepo.lookup_branch('master').target == LAST_COMMIT |
| 162 | assert testrepo.lookup_branch(b'master').target == LAST_COMMIT |
| 163 | |
| 164 | assert testrepo.lookup_branch('i18n', BranchType.LOCAL).target == I18N_LAST_COMMIT |
| 165 | assert testrepo.lookup_branch(b'i18n', BranchType.LOCAL).target == I18N_LAST_COMMIT |
| 166 | |
| 167 | assert testrepo.lookup_branch('not-exists') is None |
| 168 | assert testrepo.lookup_branch(b'not-exists') is None |
| 169 | if os.name == 'posix': # this call fails with an InvalidSpecError on NT |
| 170 | assert testrepo.lookup_branch(b'\xb1') is None |
| 171 | |
| 172 | |
| 173 | def test_listall_branches(testrepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…