예제 #1
0
def test_staff_form_not_valid(db):
    data = {'user_permissions': 1}
    form = StaffForm(data=data)
    assert not form.is_valid()
예제 #2
0
def test_staff_form_not_valid(db):
    data = {'user_permissions': 1}
    form = StaffForm(data=data)
    assert not form.is_valid()
예제 #3
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()
예제 #4
0
def test_staff_form_not_valid(db):
    data = {'groups': 1}
    form = StaffForm(data=data)
    assert not form.is_valid()
예제 #5
0
파일: test_staff.py 프로젝트: patrys/saleor
def test_staff_form_not_valid(db):
    data = {'groups': 1}
    form = StaffForm(data=data)
    assert not form.is_valid()
예제 #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()