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

Function test_remove_directory

test/test_index.py:196–200  ·  view source on GitHub ↗
(dirtyrepo: Repository)

Source from the content-addressed store, hash-verified

194
195
196def test_remove_directory(dirtyrepo: Repository) -> None:
197 index = dirtyrepo.index
198 assert 'subdir/current_file' in index
199 index.remove_directory('subdir')
200 assert 'subdir/current_file' not in index
201
202
203def test_remove_all(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

remove_directoryMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…