Пример #1
0
def test_app_link_in_home(client):
    response = client.get('/')
    dj_assert_contains(response, reverse('produtos:index'))
Пример #2
0
def test_index_content(resp, content):
    dj_assert_contains(resp, content)
Пример #3
0

@pytest.mark.parametrize('content', [
    'C*K Store',
    'Contato',
    'Copyright',
    'href="/contato/"',
])
def test_home(client, content):
    response = client.get('/')
    dj_assert_contains(response, content)


def test_contact_status_code(client):
    response = client.get('/contato/')
    assert 200 == response.status_code


@pytest.mark.parametrize('content', [
    'Rua Jataúba 161',
    'Recife, PE',
    '(81) 9 8888-8888',
    '*****@*****.**',
    'Segunda - Sexta: 9:00 às 17:00',
])
def test_contact_content(client, content):
    response = client.get('/contato/')


dj_assert_contains(response, content)
Пример #4
0
def test_home(client, content):
    response = client.get('/')
    dj_assert_contains(response, content)
Пример #5
0
def test_contact_content(client, content):
    response = client.get('/contato/')
    dj_assert_contains(response, content)