Фиксация изменений

This commit is contained in:
2026-03-05 11:03:17 +03:00
parent 1ef0b4d68c
commit 417b8b6f72
261 changed files with 8215 additions and 332 deletions

View File

@@ -55,3 +55,21 @@ def test_code_pipeline_indexes_import_alias_as_symbol() -> None:
alias_doc = next(doc for doc in docs if doc.layer == RagLayer.CODE_SYMBOL_CATALOG and doc.metadata["qname"] == "ConfigManager")
assert alias_doc.metadata["kind"] == "const"
assert alias_doc.metadata["lang_payload"]["import_alias"] is True
def test_code_pipeline_marks_test_documents() -> None:
pipeline = CodeIndexingPipeline()
content = """
def test_user_service():
assert True
"""
docs = pipeline.index_file(
repo_id="acme/proj",
commit_sha="abc123",
path="tests/test_users.py",
content=content,
)
assert docs
assert all(doc.metadata["is_test"] is True for doc in docs)