Give the public group to newly created users

This commit is contained in:
imperosol
2024-12-23 16:13:13 +01:00
parent b7bf3fd375
commit a8810816f0
5 changed files with 47 additions and 26 deletions

View File

@ -213,9 +213,9 @@ class TestMembershipQuerySet(TestClub):
memberships[1].club.members_group,
memberships[1].club.board_group,
}
assert set(user.groups.all()) == club_groups
assert set(user.groups.all()).issuperset(club_groups)
user.memberships.all().delete()
assert user.groups.all().count() == 0
assert set(user.groups.all()).isdisjoint(club_groups)
class TestClubModel(TestClub):