(testrepo: Repository)
| 41 | |
| 42 | |
| 43 | def test_branches_getitem(testrepo: Repository) -> None: |
| 44 | branch = testrepo.branches['master'] |
| 45 | assert branch.target == LAST_COMMIT |
| 46 | |
| 47 | branch = testrepo.branches.local['i18n'] |
| 48 | assert branch.target == I18N_LAST_COMMIT |
| 49 | assert testrepo.branches.get('not-exists') is None |
| 50 | with pytest.raises(KeyError): |
| 51 | testrepo.branches['not-exists'] |
| 52 | |
| 53 | |
| 54 | def test_branches(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…