diff --git a/mercadopago/config/config.py b/mercadopago/config/config.py index e901ce5..20ae7a9 100644 --- a/mercadopago/config/config.py +++ b/mercadopago/config/config.py @@ -10,7 +10,7 @@ class Config: """ def __init__(self): - self.__version = "2.2.0" + self.__version = "2.2.1" self.__user_agent = "MercadoPago Python SDK v" + self.__version self.__product_id = "bc32bpftrpp001u8nhlg" self.__tracking_id = "platform:" + platform.python_version() diff --git a/mercadopago/resources/preference.py b/mercadopago/resources/preference.py index 1afe86d..2b26e0a 100644 --- a/mercadopago/resources/preference.py +++ b/mercadopago/resources/preference.py @@ -83,4 +83,4 @@ def search(self, filters=None, request_options=None): """ return self._get(uri="/checkout/preferences/search", filters=filters, - request_options=request_options) \ No newline at end of file + request_options=request_options) diff --git a/setup.py b/setup.py index 0bef904..fb7ddad 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name="mercadopago", - version="2.2.0", + version="2.2.1", description="Mercadopago SDK module for Payments integration", author="Mercado Pago SDK", author_email="mp_sdk@mercadopago.com", diff --git a/tests/test_preference.py b/tests/test_preference.py index b9281f9..f7fe23b 100644 --- a/tests/test_preference.py +++ b/tests/test_preference.py @@ -3,6 +3,7 @@ """ import unittest +import time import mercadopago @@ -33,18 +34,22 @@ def test_all(self): preference_saved = self.sdk.preference().create(preference_object) self.assertEqual(preference_saved["status"], 201) + time.sleep(1) + preference_object["items"][0]["title"] = "Testando 1 2 3" preference_update = self.sdk.preference().update( preference_saved["response"]["id"], preference_object) self.assertEqual(preference_update["status"], 200) + time.sleep(1) preference_saved = self.sdk.preference().get( preference_saved["response"]["id"]) self.assertEqual(preference_saved["response"]["items"][0]["title"], preference_object["items"][0]["title"]) + time.sleep(1) preference_saved = self.sdk.preference().search() self.assertEqual(preference_saved["response"]["elements"][0]["items"][0], diff --git a/tests/test_subscription.py b/tests/test_subscription.py index d4ee7bd..43c9f99 100644 --- a/tests/test_subscription.py +++ b/tests/test_subscription.py @@ -114,7 +114,7 @@ def test_create_subscriptions_without_a_plan(self): @classmethod def create_card_token(cls): card_token_object = { - "card_number": "4074090000000004", + "card_number": "5031433215406351", "security_code": "123", "expiration_year": datetime.now().strftime("%Y"), "expiration_month": "12",