def test_card_update_pin(): new_pin = '7AC814A636D901BE' card = Card.update(card_id, pin_block=new_pin) assert card
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
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