MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_create_invalid_reference

Function test_create_invalid_reference

test/test_refs.py:732–738  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

730
731
732def test_create_invalid_reference(testrepo: Repository) -> None:
733 repo = testrepo
734
735 # try to create a reference with an invalid name
736 with pytest.raises(InvalidSpecError) as error:
737 repo.create_reference('refs/tags/in..valid', 'refs/heads/master')
738 assert isinstance(error.value, ValueError)
739
740
741# def test_packall_references(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

create_referenceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…