
    hjo              	          U d Z ddlZddlmZ ddlmZ dZdZd	Zd
Z ej	        d ej
        e          d           ej	        d ej
        e          dd           ej	        d ej
        e          dd           ej	        d ej
        e          dd          gZeej	                 ed<    ej        e e            de          Zej        j        d             ZdS )z-Tests for file_search_stores.documents.get().    N   )types   )pytest_helperz]fileSearchStores/fr3l0ri2so25-a3r1ump9x821/documents/asurveyofmodernistpoetrytxt-uvmqjtmkm1h2zJfileSearchStores/fr3l0ri2so25-a3r1ump9x821/documents/non-existent-documentzKfileSearchStores/fr3l0ri2so25-a3r1ump9x821/documents/_invalid_document_namezgenai-test-documenttest_get_successnamez+only supported in Gemini Developer API mode)r	   
parametersexception_if_vertextest_get_not_foundzDocuments does not exist)r	   r
   r   exception_if_mldevtest_get_invalid_nameINVALID_ARGUMENTtest_get_not_a_document_namez	Not Found
test_tablez file_search_stores.documents.get)fileglobals_for_filetest_methodr   c                 L  K   t          j        | t                    5  	 | j        j        j                            t                     d {V }|J |j        t          k    sJ n%# t          $ r}t          d|             d }~ww xY w	 d d d            d S # 1 swxY w Y   d S )Nr   zAsync get failed: )r   r   
ValueErroraiofile_search_stores	documentsget_EXISTING_DOCUMENT_NAMEr	   	Exceptionprint)clientdocumentes      i/var/www/app.qaans.com/backend/venv/lib/python3.11/site-packages/google/genai/tests/documents/test_get.pytest_async_getr"   G   s)     (<<  	z4>BB& C        h !!!]555555   $$$%%% 6                 s5   BAA&%B&
B0BBBB B)__doc__pytest r   r   r   _NON_EXISTENT_DOCUMENT_NAME_INVALID_DOCUMENT_NAME_NOT_A_DOCUMENT_NAMETestTableItem_GetDocumentParametersr   list__annotations__setup__file__globals
pytestmarkmarkasyncior"        r!   <module>r5      s  " 4 3 3              z P  g ,   M/5/5LMMMI  
  M!/5/,
 
 
 J5    M$/5/5KLLLI-    M+/5/5IJJJI&	  +1
D,-   : !] 	WYY2	  
     r4   