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

Function test_status

test/test_status.py:32–39  ·  view source on GitHub ↗

For every file in the status, check that the flags are correct.

(dirtyrepo: Repository)

Source from the content-addressed store, hash-verified

30
31
32def test_status(dirtyrepo: Repository) -> None:
33 """
34 For every file in the status, check that the flags are correct.
35 """
36 git_status = dirtyrepo.status()
37 for filepath, status in git_status.items():
38 assert filepath in git_status
39 assert status == git_status[filepath]
40
41
42def test_status_untracked_no(dirtyrepo: Repository) -> None:

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…