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