
    2i#                         d dl Z d dlZd dlZd dlZd dlmZ  G d dej                        Zedk(  r ej                          yy)    N)GoogleSearchc                       e Zd Zd Zd Zy)TestLocationApic                 B    t        j                  dd      t        _        y )NAPI_KEYdemo)osgetenvr   SERP_API_KEY)selfs    _/var/www/html/marco-python-backend/venv/lib/python3.12/site-packages/tests/test_location_api.pysetUpzTestLocationApi.setUp	   s    $&IIi$?!    c                     t        d dd      }|j                  dd      }t        j                  d      }|j                  |       | j	                  |d   j                  d             y )	NT)qasyncAustin      )indentr   id)r   get_locationpprintPrettyPrinterassertIsNotNoneget)r   searchlocation_listpps       r   test_get_locationz!TestLocationApi.test_get_location   s]    D489++Ha8!!+
		- ]1-11$78r   N)__name__
__module____qualname__r   r     r   r   r   r      s    @9r   r   __main__)
randomunittestr   r	   serpapir   TestCaser   r!   mainr$   r   r   <module>r+      s@       	  
9h'' 
9 zHMMO r   