add tests

This commit is contained in:
imperosol
2026-04-17 18:13:13 +02:00
parent 0dcfb5e18b
commit 710bf56c10
4 changed files with 220 additions and 22 deletions

View File

@@ -128,6 +128,9 @@ class Migration(migrations.Migration):
("is_presidency", False), ("is_board", True), _connector="OR"
),
name="clubrole_presidency_implies_board",
violation_error_message=(
"A role cannot be in the presidency while not being in the board"
),
),
),
migrations.RunPython(migrate_roles, migrations.RunPython.noop),