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