generated from coulomb/repo-seed
Improved datamodel and deterministic generation
This commit is contained in:
@@ -22,6 +22,16 @@ def test_initialize_is_idempotent_and_applies_expected_columns(tmp_path):
|
||||
feature_columns = {
|
||||
row[1] for row in connection.execute("PRAGMA table_info(approved_features)")
|
||||
}
|
||||
ability_columns = {
|
||||
row[1] for row in connection.execute("PRAGMA table_info(approved_abilities)")
|
||||
}
|
||||
capability_columns = {
|
||||
row[1]
|
||||
for row in connection.execute("PRAGMA table_info(approved_capabilities)")
|
||||
}
|
||||
candidate_feature_columns = {
|
||||
row[1] for row in connection.execute("PRAGMA table_info(candidate_features)")
|
||||
}
|
||||
evidence_columns = {
|
||||
row[1] for row in connection.execute("PRAGMA table_info(approved_evidence)")
|
||||
}
|
||||
@@ -33,6 +43,10 @@ def test_initialize_is_idempotent_and_applies_expected_columns(tmp_path):
|
||||
}
|
||||
|
||||
assert "source_refs" in feature_columns
|
||||
assert {"primary_class", "attributes"} <= ability_columns
|
||||
assert {"primary_class", "attributes"} <= capability_columns
|
||||
assert {"primary_class", "attributes"} <= feature_columns
|
||||
assert {"primary_class", "attributes"} <= candidate_feature_columns
|
||||
assert "source_refs" in evidence_columns
|
||||
assert {
|
||||
"target_kind",
|
||||
|
||||
Reference in New Issue
Block a user