generated from coulomb/repo-seed
first content-indexing slice
This commit is contained in:
@@ -320,6 +320,15 @@ def test_api_analysis_run_loop(tmp_path):
|
||||
assert ("documentation", "README", "README.md") in fact_names
|
||||
assert ("framework", "React", "package.json") in fact_names
|
||||
assert ("framework", "Vite", "package.json") in fact_names
|
||||
|
||||
chunks_response = client.get(
|
||||
f"/repos/{repository_id}/analysis-runs/"
|
||||
f"{run['analysis_run']['id']}/content-chunks"
|
||||
)
|
||||
assert chunks_response.status_code == 200
|
||||
assert {
|
||||
(chunk["kind"], chunk["path"]) for chunk in chunks_response.json()
|
||||
} >= {("documentation", "README.md"), ("manifest", "package.json")}
|
||||
finally:
|
||||
app.dependency_overrides.clear()
|
||||
|
||||
@@ -392,6 +401,8 @@ def test_ui_register_analyze_and_approve_loop(tmp_path):
|
||||
run_detail = client.get(run_path)
|
||||
assert run_detail.status_code == 200
|
||||
assert "Candidate Graph" in run_detail.text
|
||||
assert "Content Chunks" in run_detail.text
|
||||
assert "README.md:1-1" in run_detail.text
|
||||
assert "ID " in run_detail.text
|
||||
assert "No review decisions yet." in run_detail.text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user