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

Function test_status_untracked_normal

test/test_status.py:71–77  ·  view source on GitHub ↗
(
    dirtyrepo: Repository, untracked_files: str, expected: set[str]
)

Source from the content-addressed store, hash-verified

69 ],
70)
71def test_status_untracked_normal(
72 dirtyrepo: Repository, untracked_files: str, expected: set[str]
73) -> None:
74 git_status = dirtyrepo.status(untracked_files=untracked_files)
75 assert {
76 file for file, status in git_status.items() if status & FileStatus.WT_NEW
77 } == expected
78
79
80@pytest.mark.parametrize('ignored,expected', [(True, {'ignored'}), (False, set())])

Callers

nothing calls this directly

Calls 1

statusMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…