Exemple #1
0
def test_staff_form_not_valid(db):
    data = {'user_permissions': 1}
    form = StaffForm(data=data)
    assert not form.is_valid()
Exemple #2
0
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()
Exemple #4
0
def test_staff_form_not_valid(db):
    data = {'groups': 1}
    form = StaffForm(data=data)
    assert not form.is_valid()
Exemple #5
0
def test_staff_form_not_valid(db):
    data = {'groups': 1}
    form = StaffForm(data=data)
    assert not form.is_valid()
Exemple #6
0
def test_staff_form_not_valid(staff_user):
    data = {"user_permissions": 1}
    form = StaffForm(data=data, user=staff_user)
    assert not form.is_valid()