
    עiw              	          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y)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 the Gemini Developer client)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                 \  K   t        j                  | t              5  	 | j                  j                  j
                  j                  t               d {   }|J |j                  t        k(  sJ 	 d d d        y 7 '# t        $ r}t        d|         d }~ww xY w# 1 sw Y   y xY ww)Nr   zAsync get failed: )r   r   
ValueErroraiofile_search_stores	documentsget_EXISTING_DOCUMENT_NAMEr	   	Exceptionprint)clientdocumentes      f/sites/domain-asset-master/.venv/lib/python3.12/site-packages/google/genai/tests/documents/test_get.pytest_async_getr"   G   s     ((< 	zz44>>BB& C  h !!!]]5555 
   $% sK   B,B 7B A>B 5	B,>B  	B	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    z P  g ,   M/5//5LMK
  M!/5//,
 L5  M$/5//5KLK-  M+/5//5IJK&	+1
D,,- : !]  	Y2	
  r4   