MCPcopy Create free account
hub / github.com/Codeplain-ai/codeplain / test_edit_and_addition

Function test_edit_and_addition

tests/test_change_detection.py:156–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154
155
156def test_edit_and_addition():
157 module = FakeModule("mod", ["X", "B", "C"], stored_frs=["A", "B"])
158 changes = _detect_module_changes(module)
159 edits = [c for c in changes if c.change_type == "edited"]
160 added = [c for c in changes if c.change_type == "added"]
161 assert len(edits) == 1
162 assert edits[0].frid == "1"
163 assert len(added) == 1
164 assert added[0].frid == "3"
165
166
167def test_edit_and_removal():

Callers

nothing calls this directly

Calls 2

_detect_module_changesFunction · 0.90
FakeModuleClass · 0.70

Tested by

no test coverage detected