Exemple #1
0
def test_home_link(resp):
    assert_contains(
        resp, f'<a class="navbar-brand" href="{reverse("home")}">Partyou</a>')
Exemple #2
0
def test_home_content(resp, content):
    assert_contains(resp, content)
Exemple #3
0
def test_title(resp):
    assert_contains(resp, '<title>Email</title>')
Exemple #4
0
def test_order_status(resp, order: Order):
    assert_contains(resp, order.get_status_display())
Exemple #5
0
def test_title(resp):
    assert_contains(resp, 'PartyouDesafio')
Exemple #6
0
def test_title(resp):
    assert_contains(resp, '<title>Iniciar sessão</title>')
Exemple #7
0
def test_email_client(resp, order: Order):
    assert_contains(resp, order.user.email)
Exemple #8
0
def test_login_link(resp):
    assert_contains(
        resp, f'<a class="nav-link" href="{reverse("login")}">Acessar</a>')
Exemple #9
0
def test_home_link(resp):
    assert_contains(resp, f'href="{reverse("base:contact")}">Contato</a>')
Exemple #10
0
def test_product_price(resp, product: Product):
    assert_contains(resp, (str(product.price)).replace('.', ','))
Exemple #11
0
def test_title(resp):
    assert_contains(resp, '<title>Registro</title>')
Exemple #12
0
def test_product_description(resp, product: Product):
    assert_contains(resp, product.description)
Exemple #13
0
def test_product_name(resp, product: Product):
    assert_contains(resp, product.name)
Exemple #14
0
def test_title(resp):
    assert_contains(resp, '<title>Partyou - Desafio</title>')
Exemple #15
0
def test_logout_link(resp):
    assert_contains(
        resp, f'<a class="nav-link" href="{reverse("logout")}">Sair</a>')
Exemple #16
0
def test_number_of_order(resp, order: Order):
    assert_contains(resp, order.id)
Exemple #17
0
def test_page_content(content, login_get_resp):
    assert_contains(login_get_resp, content)
Exemple #18
0
def test_product_quantity(resp, order_product: OrderProduct):
    assert_contains(resp, order_product.quantity)