def test_staff_form_not_valid(db): data = {'user_permissions': 1} form = StaffForm(data=data) assert not form.is_valid()
def test_staff_form_not_valid(staff_user): data = {"user_permissions": 1} form = StaffForm(data=data, user=staff_user) assert not form.is_valid()
def test_staff_form_not_valid(db): data = {'groups': 1} form = StaffForm(data=data) assert not form.is_valid()