Skip to content

Commit

Permalink
Fix pages names
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasrcezimbra committed Aug 23, 2023
1 parent e800bec commit 18384d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyitau/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def full_statement_op(self):
return self._soup.find("a").attrs["data-op"]


class CardsPage(SoupPage):
class Cards(SoupPage):
@property
def card_details_op(self):
form_invoice = self._soup.find("form", id="formVerFaturaRedesenho")
Expand Down
12 changes: 6 additions & 6 deletions tests/pages/test_cards.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import pytest

from pyitau.pages import CardsPage
from pyitau.pages import Cards


@pytest.fixture()
def cards_page(response_cards_page: str) -> CardsPage:
return CardsPage(response_cards_page)
def cards_page(response_cards_page: str) -> Cards:
return Cards(response_cards_page)


def test_init(response_cards_page: str):
cards_page = CardsPage(response_cards_page)
cards_page = Cards(response_cards_page)
assert cards_page._text == response_cards_page


def test_card_id(cards_page: CardsPage):
def test_card_id(cards_page: Cards):
assert cards_page.first_card_id == "PYITAU_CARD_ID"


def test_card_op(cards_page: CardsPage):
def test_card_op(cards_page: Cards):
assert cards_page.card_details_op == "PYITAU_FATURA_REDESENHO_OP"

0 comments on commit 18384d4

Please sign in to comment.