Exemple #1
0
def test_forgot_password_link(resp):
    dj_assert_contains(resp, reverse('password_reset'))
Exemple #2
0
def test_content(content, resp):
    dj_assert_contains(resp, content)
Exemple #3
0
def test_login_action_link(resp):
    login_path = reverse('login')
    dj_assert_contains(resp, f'action="{login_path}"')
Exemple #4
0
def test_contact_content(client, content):
    response = client.get('/contato/')
    dj_assert_contains(response, content)
Exemple #5
0
def test_home(client, content):
    response = client.get('/')
    dj_assert_contains(response, content)
Exemple #6
0
def test_image_url(resp, galeria):
    model = galeria[0]
    dj_assert_contains(resp, model.foto.url)
Exemple #7
0
def test_index_content(resp, content):
    dj_assert_contains(resp, content)
Exemple #8
0
def test_app_link_in_home(client):
    response = client.get('/')
    dj_assert_contains(response, reverse('galeria:index'))