kfet -- Fix auth tests

This commit is contained in:
Aurélien Delobelle 2019-01-14 23:01:25 +01:00
parent fcf4a25745
commit 84bbe78e50

View file

@ -89,10 +89,7 @@ class GroupFormTests(TestCase):
selected = [self.kf_perm1, self.kf_perm2]
# add user to some K-Fêt groups through UserGroupForm
data = {"groups": [group.pk for group in self.kfet_groups]}
form = UserGroupForm(data, instance=self.user)
data = {"name": "A Group", "permissions": [perm.pk for perm in selected]}
form = GroupForm(data, instance=self.kf_group)
form.save()