(testrepo: Repository)
| 40 | |
| 41 | |
| 42 | def test_equality(testrepo: Repository) -> None: |
| 43 | # get a commit object twice and see if it equals ittestrepo |
| 44 | commit_id = testrepo.lookup_reference('refs/heads/master').target |
| 45 | commit_a = testrepo[commit_id] |
| 46 | commit_b = testrepo[commit_id] |
| 47 | |
| 48 | assert commit_a is not commit_b |
| 49 | assert commit_a == commit_b |
| 50 | assert not (commit_a != commit_b) |
| 51 | |
| 52 | |
| 53 | def test_hashing(testrepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…