Files
sfera/packages/semantic-kernel/tests/test_unresolved_references.py
2026-05-16 19:03:49 +03:00

22 lines
640 B
Python

from pathlib import Path
from review_engine import review_snapshot
from semantic_kernel import index_project
def test_index_project_records_unresolved_calls(tmp_path: Path):
module = tmp_path / "demo_module.bsl"
module.write_text(
"""
Процедура Проведение()
НеизвестнаяПроцедура();
КонецПроцедуры
""",
encoding="utf-8",
)
snapshot = index_project(tmp_path, project_id="demo")
assert snapshot.unresolved_references[0].target_name == "НеизвестнаяПроцедура"
assert review_snapshot(snapshot)[0].title == "Unresolved call"