(testrepo: Repository)
| 55 | |
| 56 | |
| 57 | def test_describe_strategies(testrepo: Repository) -> None: |
| 58 | assert 'heads/master' == testrepo.describe(describe_strategy=DescribeStrategy.ALL) |
| 59 | |
| 60 | testrepo.create_reference( |
| 61 | 'refs/tags/thetag', '4ec4389a8068641da2d6578db0419484972284c8' |
| 62 | ) |
| 63 | with pytest.raises(KeyError): |
| 64 | testrepo.describe() |
| 65 | assert 'thetag-2-g2be5719' == testrepo.describe( |
| 66 | describe_strategy=DescribeStrategy.TAGS |
| 67 | ) |
| 68 | |
| 69 | |
| 70 | def test_describe_pattern(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…