Exemple #1
0
def test_card_update_pin():
    new_pin = '7AC814A636D901BE'
    card = Card.update(card_id, pin_block=new_pin)
    assert card
Exemple #2
0
def test_card_can_not_be_updated_if_it_is_deactivated():
    with pytest.raises(CuencaResponseException) as exc:
        Card.update(card_id, status=CardStatus.active)
    assert exc.value
Exemple #3
0
def test_card_update():
    card = Card.update(card_id, status=CardStatus.blocked)
    assert card.status == CardStatus.blocked
    card = Card.update(card_id, status=CardStatus.active)
    assert card.status == CardStatus.active