Tesis 1.0.0
Loading...
Searching...
No Matches
test_cart_service.CartServiceTests Class Reference
Inheritance diagram for test_cart_service.CartServiceTests:

Public Member Functions

 setUp (self)
 test_get_cart_success (self, mock_get)
 test_get_cart_with_jwt_token (self, mock_get)
 test_get_cart_error (self, mock_get)

Public Attributes

str test_token = "test_token_1234567890"
dict test_cart_data

Detailed Description

Pruebas para el servicio CartService que interactúa con el backend principal

Definition at line 6 of file test_cart_service.py.

Member Function Documentation

◆ setUp()

test_cart_service.CartServiceTests.setUp ( self)

Definition at line 11 of file test_cart_service.py.

◆ test_get_cart_error()

test_cart_service.CartServiceTests.test_get_cart_error ( self,
mock_get )

Definition at line 73 of file test_cart_service.py.

◆ test_get_cart_success()

test_cart_service.CartServiceTests.test_get_cart_success ( self,
mock_get )

Definition at line 27 of file test_cart_service.py.

◆ test_get_cart_with_jwt_token()

test_cart_service.CartServiceTests.test_get_cart_with_jwt_token ( self,
mock_get )

Definition at line 51 of file test_cart_service.py.

Member Data Documentation

◆ test_cart_data

test_cart_service.CartServiceTests.test_cart_data
Initial value:
= {
"productos": [
{
"id": 1,
"nombre": "Hamburguesa Clásica",
"descripcion": "Hamburguesa con queso y lechuga",
"precio": 500.0,
"cantidad": 2
}
],
"total": 1000.0
}

Definition at line 13 of file test_cart_service.py.

◆ test_token

str test_cart_service.CartServiceTests.test_token = "test_token_1234567890"

Definition at line 12 of file test_cart_service.py.


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