예제 #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)