Esempio n. 1
0
def test_login_form_not_valid(customer_user):
    data = {'user': '******', 'password': '******'}
    form = LoginForm(data=data)
    assert not form.is_valid()
    assert form.get_user_id() is None
Esempio n. 2
0
def test_login_form_not_valid(customer_user):
    data = {'user': '******', 'password': '******'}
    form = LoginForm(data=data)
    assert not form.is_valid()
    assert form.get_user_id() is None
Esempio n. 3
0
def test_login_form_valid(customer_user):
    data = {'username': '******', 'password': '******'}
    form = LoginForm(data=data)
    assert form.is_valid()
    assert form.get_user() == customer_user
Esempio n. 4
0
def test_login_form_valid(customer_user):
    data = {'username': '******', 'password': '******'}
    form = LoginForm(data=data)
    assert form.is_valid()
    assert form.get_user() == customer_user