Two milestones: a note can carry its own check (317), and a rule keeps what it used to say (323) #135
@@ -242,9 +242,13 @@ def test_the_column_guard_covers_every_table_with_a_row_helper():
|
|||||||
with a new helper, and not to the registry, would be unguarded and look
|
with a new helper, and not to the registry, would be unguarded and look
|
||||||
guarded. Join tables have no model class and carry both their columns by
|
guarded. Join tables have no model class and carry both their columns by
|
||||||
construction, so they are the only permitted absences."""
|
construction, so they are the only permitted absences."""
|
||||||
|
# REAL table names, as _BACKED_UP holds them — not the shorter keys the
|
||||||
|
# payload uses for the same sections. Getting this wrong is what the guard
|
||||||
|
# caught on its own first run.
|
||||||
join_tables = {
|
join_tables = {
|
||||||
"rulebook_subscriptions", "rule_suppressions",
|
"project_rulebook_subscriptions", "project_rule_suppressions",
|
||||||
"topic_suppressions", "rulebook_exclusions", "rule_systems",
|
"project_topic_suppressions", "project_rulebook_exclusions",
|
||||||
|
"rule_systems",
|
||||||
}
|
}
|
||||||
covered = set(_column_guard_targets()) | join_tables
|
covered = set(_column_guard_targets()) | join_tables
|
||||||
assert set(backup._BACKED_UP) - covered == set()
|
assert set(backup._BACKED_UP) - covered == set()
|
||||||
|
|||||||
Reference in New Issue
Block a user