generated from coulomb/repo-seed
one time bootstrap path
This commit is contained in:
@@ -86,18 +86,18 @@ def test_content_extractor_chunks_provider_related_config(tmp_path):
|
||||
assert "OPENROUTER_API_KEY" in chunks[0].text
|
||||
|
||||
|
||||
def test_content_extractor_preserves_source_role_metadata(tmp_path):
|
||||
def test_content_extractor_preserves_intent_source_role_metadata(tmp_path):
|
||||
repo = tmp_path / "repo"
|
||||
repo.mkdir()
|
||||
(repo / "SCOPE.md").write_text("# SCOPE\n\nProvides OIDC.\n", encoding="utf-8")
|
||||
(repo / "INTENT.md").write_text("# INTENT\n\nProvide OIDC.\n", encoding="utf-8")
|
||||
|
||||
chunks = ContentExtractor().extract(
|
||||
repo,
|
||||
[
|
||||
fact(1, "scope", "SCOPE", "SCOPE.md", source_role="scope_summary"),
|
||||
fact(1, "intent", "INTENT", "INTENT.md", source_role="intent_summary"),
|
||||
],
|
||||
)
|
||||
|
||||
assert len(chunks) == 1
|
||||
assert chunks[0].kind == "scope"
|
||||
assert chunks[0].metadata["source_role"] == "scope_summary"
|
||||
assert chunks[0].kind == "intent"
|
||||
assert chunks[0].metadata["source_role"] == "intent_summary"
|
||||
|
||||
Reference in New Issue
Block a user