generated from coulomb/repo-seed
Improved ability description
This commit is contained in:
@@ -30,12 +30,12 @@ def chunk(id, kind, path, text, start_line=1, end_line=1):
|
||||
)
|
||||
|
||||
|
||||
def test_candidate_generator_builds_review_seed_from_observed_facts():
|
||||
def test_candidate_generator_builds_purpose_seed_from_observed_facts():
|
||||
repository = Repository(
|
||||
id=1,
|
||||
name="MailRouter",
|
||||
url="/tmp/mail-router",
|
||||
description=None,
|
||||
description="Routes incoming customer email to the right team.",
|
||||
branch="main",
|
||||
status="analyzed",
|
||||
)
|
||||
@@ -50,7 +50,8 @@ def test_candidate_generator_builds_review_seed_from_observed_facts():
|
||||
|
||||
assert len(graph) == 1
|
||||
ability = graph[0]
|
||||
assert ability.name == "Review MailRouter Repository Usefulness"
|
||||
assert ability.name == "Route Incoming Customer Email To The Right Team"
|
||||
assert "Usefulness" not in ability.name
|
||||
assert ability.source_refs[0].path == "README.md"
|
||||
interface_capability = ability.capabilities[0]
|
||||
assert interface_capability.name == "Expose Repository Interface"
|
||||
@@ -96,6 +97,7 @@ def test_candidate_generator_enriches_descriptions_from_content_chunks():
|
||||
|
||||
graph = CandidateGraphGenerator().generate(repository, facts, chunks)
|
||||
|
||||
assert graph[0].name == "Route Incoming Customer Email To The Right Team"
|
||||
assert "MailRouter. Routes incoming customer email" in graph[0].description
|
||||
assert '@app.post("/classify")' in graph[0].capabilities[0].description
|
||||
|
||||
|
||||
Reference in New Issue
Block a user