Tesis 1.0.0
Loading...
Searching...
No Matches
test_mercadopago_service.MercadoPagoServiceTests Class Reference
Inheritance diagram for test_mercadopago_service.MercadoPagoServiceTests:

Public Member Functions

 setUp (self)
 test_process_cart_to_items_list_format (self)
 test_process_cart_to_items_dict_format (self)
 test_create_preference_success (self, mock_sdk)

Public Attributes

 mp_service = MercadoPagoService()
list test_items
str external_reference = "test_reference_123"
str test_payer_email = "cliente@example.com"

Detailed Description

Pruebas para el servicio MercadoPagoService que interactúa con la API de Mercado Pago

Definition at line 6 of file test_mercadopago_service.py.

Member Function Documentation

◆ setUp()

test_mercadopago_service.MercadoPagoServiceTests.setUp ( self)

Definition at line 11 of file test_mercadopago_service.py.

◆ test_create_preference_success()

test_mercadopago_service.MercadoPagoServiceTests.test_create_preference_success ( self,
mock_sdk )
Prueba la creación exitosa de una preferencia de pago

Definition at line 74 of file test_mercadopago_service.py.

◆ test_process_cart_to_items_dict_format()

test_mercadopago_service.MercadoPagoServiceTests.test_process_cart_to_items_dict_format ( self)
Prueba la conversión de carrito en formato de diccionario a formato de items de Mercado Pago

Definition at line 48 of file test_mercadopago_service.py.

◆ test_process_cart_to_items_list_format()

test_mercadopago_service.MercadoPagoServiceTests.test_process_cart_to_items_list_format ( self)
Prueba la conversión de carrito en formato de lista a formato de items de Mercado Pago

Definition at line 26 of file test_mercadopago_service.py.

Member Data Documentation

◆ external_reference

str test_mercadopago_service.MercadoPagoServiceTests.external_reference = "test_reference_123"

Definition at line 23 of file test_mercadopago_service.py.

◆ mp_service

test_mercadopago_service.MercadoPagoServiceTests.mp_service = MercadoPagoService()

Definition at line 12 of file test_mercadopago_service.py.

◆ test_items

list test_mercadopago_service.MercadoPagoServiceTests.test_items
Initial value:
= [
{
"id": "1",
"title": "Hamburguesa Clásica",
"description": "Hamburguesa con queso y lechuga",
"quantity": 2,
"unit_price": 500.0,
"currency_id": "ARS"
}
]

Definition at line 13 of file test_mercadopago_service.py.

◆ test_payer_email

str test_mercadopago_service.MercadoPagoServiceTests.test_payer_email = "cliente@example.com"

Definition at line 24 of file test_mercadopago_service.py.


The documentation for this class was generated from the following file: