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

Function test_no_attr_aspath

test/test_attributes.py:46–50  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

44
45
46def test_no_attr_aspath(testrepo: Repository) -> None:
47 with (Path(testrepo.workdir) / '.gitattributes').open('w+') as f:
48 print('*.py text\n', file=f)
49
50 assert testrepo.get_attr(Path('file.py'), 'text')

Callers

nothing calls this directly

Calls 2

openMethod · 0.80
get_attrMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…