-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix credit card statements & support multiple cards (#209)
* fixed credit card statements & support multiple cards * Add test fo AuthenticatedHome.menu_op * Add tests for AuthenticatedHomePage.menu_op * Add Menu2Page * Add tests for CardDetails page * Fix tests get_credit_card_invoice --------- Co-authored-by: Ivan Neto <ivan.cr.neto@gmail.com>
- Loading branch information
1 parent
b97ca0a
commit 78ef8ec
Showing
9 changed files
with
711 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
import pytest | ||
|
||
from pyitau.pages import CardDetails | ||
|
||
|
||
def test_init(response_card_details: str): | ||
@pytest.fixture | ||
def page(response_card_details): | ||
return CardDetails(response_card_details) | ||
|
||
|
||
def test_init(response_card_details): | ||
card_details = CardDetails(response_card_details) | ||
assert card_details._text == response_card_details | ||
|
||
|
||
def test_op(response_card_details: str): | ||
card_details = CardDetails(response_card_details) | ||
assert card_details.full_invoice_op == 'PYITAU_URL_CONTIGENCIA_DOLAR_OP' | ||
def test_invoice_op(page): | ||
assert page.invoice_op == "PYITAU_invoice_op" | ||
|
||
|
||
def test_full_statement_op(page): | ||
assert page.full_statement_op == "PYITAU_full_statement_op" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import pytest | ||
|
||
from pyitau.pages import Menu2Page | ||
|
||
|
||
@pytest.fixture | ||
def response(response_menu2): | ||
return response_menu2 | ||
|
||
|
||
@pytest.fixture | ||
def page(response): | ||
return Menu2Page(response) | ||
|
||
|
||
def test_init(response): | ||
page = Menu2Page(response) | ||
assert page._text == response | ||
|
||
|
||
def test_checking_cards_op(page): | ||
assert page.checking_cards_op == 'PYITAU_OP_cartoes' |
Oops, something went wrong.