Initial SFERA platform baseline
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user