(testrepo: Repository)
| 454 | |
| 455 | |
| 456 | def test_lookup_reference(testrepo: Repository) -> None: |
| 457 | repo = testrepo |
| 458 | |
| 459 | # Raise KeyError ? |
| 460 | with pytest.raises(KeyError): |
| 461 | repo.lookup_reference('refs/foo') |
| 462 | |
| 463 | # Test a lookup |
| 464 | reference = repo.lookup_reference('refs/heads/master') |
| 465 | assert reference.name == 'refs/heads/master' |
| 466 | |
| 467 | |
| 468 | def test_lookup_reference_dwim(testrepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…