diff --git a/src/mcp/tools/graph_tools.py b/src/mcp/tools/graph_tools.py index 4fb44e3..900d9d8 100644 --- a/src/mcp/tools/graph_tools.py +++ b/src/mcp/tools/graph_tools.py @@ -11,7 +11,6 @@ from src.core.di_container import ServiceCollection from src.core.error_handler import error_boundary from src.core.graph import EdgeType, NodeLabel, PropertyGraph -from src.core.indexing.project_indexer_registry import ProjectIndexerRegistry from src.core.multi_project_searcher import MultiProjectSearcher from src.mcp.tools.base import MCPTool diff --git a/tests/test_database_lock_selfhealing.py b/tests/test_database_lock_selfhealing.py index 10faf17..ca893cc 100644 --- a/tests/test_database_lock_selfhealing.py +++ b/tests/test_database_lock_selfhealing.py @@ -33,7 +33,6 @@ LockBusyError, LockHolderState, ProcessInspector, - WindowsProcessInspector, ) DEAD_PID = 999_999_999 diff --git a/tests/test_graph_stage_e4.py b/tests/test_graph_stage_e4.py index 8fe7636..ca57477 100644 --- a/tests/test_graph_stage_e4.py +++ b/tests/test_graph_stage_e4.py @@ -7,6 +7,7 @@ (доказывает отказ от тяжёлого векторного поиска ~3600ms). """ import asyncio + import pytest from src.core.graph import PropertyGraph diff --git a/tests/test_symbol_index_persistence_e4.py b/tests/test_symbol_index_persistence_e4.py index 2baecb0..c1947f8 100644 --- a/tests/test_symbol_index_persistence_e4.py +++ b/tests/test_symbol_index_persistence_e4.py @@ -10,17 +10,17 @@ - test_hybrid_normal_save: HYBRID adapter пишет непустой symbol_index.json - test_raw_symbol_index_save: сырой SymbolIndex пишет нормально """ -import sys import json +import sys import tempfile from pathlib import Path sys.path.insert(0, str(Path(__file__).parent.parent)) -from src.core.search.graph_adapter import SymbolIndexAdapter from src.core.graph import PropertyGraph -from src.core.indexing.symbol_index import SymbolIndex from src.core.indexing.index_guard import IndexGuard +from src.core.indexing.symbol_index import SymbolIndex +from src.core.search.graph_adapter import SymbolIndexAdapter def _make_guard_and_pg(): @@ -84,7 +84,7 @@ def test_raw_symbol_index_save(): assert json_file.exists(), "Raw SymbolIndex ДОЛЖЕН писать JSON" data = json.loads(json_file.read_text(encoding="utf-8")) assert len(data.get("definitions", {})) == 1, "Raw SymbolIndex должен сохранить 1 def" - print(f"[PASS] test_raw_symbol_index_save — JSON с 1 def") + print("[PASS] test_raw_symbol_index_save — JSON с 1 def") if __name__ == "__main__":