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