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

Function test_remove_directory_aspath

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

Source from the content-addressed store, hash-verified

217
218
219def test_remove_directory_aspath(dirtyrepo: Repository) -> None:
220 index = dirtyrepo.index
221 assert 'subdir/current_file' in index
222 index.remove_directory(Path('subdir'))
223 assert 'subdir/current_file' not in index
224
225
226def test_remove_all_aspath(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…