MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_codebuddy_install_idempotent

Function test_codebuddy_install_idempotent

tests/test_codebuddy.py:115–121  ·  view source on GitHub ↗

Re-install does not duplicate ## graphify sections.

(tmp_path)

Source from the content-addressed store, hash-verified

113
114
115def test_codebuddy_install_idempotent(tmp_path):
116 """Re-install does not duplicate ## graphify sections."""
117 from graphify.__main__ import codebuddy_install
118 codebuddy_install(tmp_path)
119 codebuddy_install(tmp_path)
120 md = _codebuddy_md_path(tmp_path)
121 assert md.read_text().count("## graphify") == 1
122
123
124def test_codebuddy_install_upgrades_stale_section(tmp_path):

Callers

nothing calls this directly

Calls 2

codebuddy_installFunction · 0.85
_codebuddy_md_pathFunction · 0.85

Tested by

no test coverage detected