generated from coulomb/repo-seed
first content-indexing slice
This commit is contained in:
@@ -25,9 +25,16 @@ def test_initialize_is_idempotent_and_applies_expected_columns(tmp_path):
|
||||
evidence_columns = {
|
||||
row[1] for row in connection.execute("PRAGMA table_info(approved_evidence)")
|
||||
}
|
||||
tables = {
|
||||
row[0]
|
||||
for row in connection.execute(
|
||||
"SELECT name FROM sqlite_master WHERE type = 'table'"
|
||||
)
|
||||
}
|
||||
|
||||
assert "source_refs" in feature_columns
|
||||
assert "source_refs" in evidence_columns
|
||||
assert "content_chunks" in tables
|
||||
|
||||
|
||||
def test_delete_repository_cascades_registry_and_review_rows(tmp_path):
|
||||
@@ -72,6 +79,7 @@ def test_delete_repository_cascades_registry_and_review_rows(tmp_path):
|
||||
"approved_features",
|
||||
"approved_evidence",
|
||||
"analysis_runs",
|
||||
"content_chunks",
|
||||
"review_decisions",
|
||||
):
|
||||
count = connection.execute(f"SELECT COUNT(*) FROM {table}").fetchone()[0]
|
||||
|
||||
Reference in New Issue
Block a user