add tests

This commit is contained in:
imperosol
2026-04-17 18:13:13 +02:00
parent 5250751d77
commit fed0905b9c
6 changed files with 226 additions and 33 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),