MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_new_file

Method test_new_file

tests/test_git_utilities.py:97–104  ·  view source on GitHub ↗
(self, git_repo)

Source from the content-addressed store, hash-verified

95 assert any(s.path == "README.md" for s in status)
96
97 def test_new_file(self, git_repo):
98 with open(os.path.join(git_repo, "new.txt"), "w") as f:
99 f.write("new file\n")
100 status = get_file_status(git_repo)
101 assert len(status) >= 1
102 new_files = [s for s in status if s.path == "new.txt"]
103 assert len(new_files) == 1
104 assert new_files[0].is_added
105
106
107class TestFileStatus:

Callers

nothing calls this directly

Calls 3

get_file_statusFunction · 0.90
joinMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected