MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / _services

Function _services

tests/unit/cli/test_index_exit_codes.py:14–19  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

12
13
14def _services(tmp_path):
15 db_manager = MagicMock()
16 code_finder = MagicMock()
17 code_finder.list_indexed_repositories.return_value = []
18 ctx = SimpleNamespace(cgcignore_path=None, mode="global")
19 return db_manager, MagicMock(), code_finder, ctx
20
21
22def test_index_helper_exits_nonzero_on_indexing_failure(tmp_path):

Calls

no outgoing calls

Tested by

no test coverage detected