refactor(aggregate): consolidate build_markdown and remove redundant file building
This commit is contained in:
@@ -59,13 +59,14 @@ def test_build_file_items_with_tiers(tmp_path: Any) -> None:
|
||||
assert item2["tier"] == 3
|
||||
|
||||
def test_build_files_section_with_dicts(tmp_path: Any) -> None:
|
||||
from src.aggregate import build_files_section
|
||||
from src.aggregate import _build_files_section_from_items, build_file_items
|
||||
file1 = tmp_path / "file1.txt"
|
||||
file1.write_text("content1")
|
||||
files_config = [
|
||||
{"path": str(file1)}
|
||||
]
|
||||
result = build_files_section(tmp_path, files_config)
|
||||
items = build_file_items(tmp_path, files_config)
|
||||
result = _build_files_section_from_items(items)
|
||||
assert "content1" in result
|
||||
assert "file1.txt" in result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user