o
    ÚtBhÝ  ã                   @   s`   d dl Z d dlZd dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ G dd„ deƒZdS )	é    N)ÚApiTestBase)Ú
TestHelper)ÚHttpResponseCatcher)Ú	APIHelper)ÚCustomersApic                       s(   e Zd Ze‡ fdd„ƒZdd„ Z‡  ZS )ÚCustomersApiTestsc                    s*   t t| ƒ ¡  tƒ | _t| j| jƒ| _d S )N)Úsuperr   Ú
setUpClassr   Úresponse_catcherr   ÚconfigÚ
controller)Úcls©Ú	__class__© ús/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/tests/api/test_customers_api.pyr	      s   zCustomersApiTests.setUpClassc                 C   s,   t  d¡}| j |¡}|  | jjjd¡ d S )Na  {"given_name":"Amelia","family_name":"Earhart","email_address":"Amelia.Earhart@example.com","address":{"address_line_1":"500 Electric Ave","address_line_2":"Suite 600","locality":"New York"},"phone_number":"1-212-555-4240","reference_id":"YOUR_REFERENCE_ID","note":"a customer"}éÈ   )r   Újson_deserializer   Úcreate_customerÚassertEqualsr
   ÚresponseÚstatus_code)ÚselfÚbodyÚresultr   r   r   Útest_create_customer%   s
   ÿz&CustomersApiTests.test_create_customer)Ú__name__Ú
__module__Ú__qualname__Úclassmethodr	   r   Ú__classcell__r   r   r   r   r      s    r   )ÚjsonÚdateutil.parserÚdateutilÚtests.api.api_test_baser   Útests.test_helperr   Útests.http_response_catcherr   Úsquare.api_helperr   Úsquare.api.customers_apir   r   r   r   r   r   Ú<module>   s   