
    Owg                         d dl mZ d dlZd dlmZ d Zej                  j                  d        Zej                  j                  d        Z	y)    )BytesION)read_csvc                      t        j                  dd       ddlm}  ddg}|D ])  } | t	        |      t        |            }t        |       + y )	Nbotocorez1.10.47)
minversionr   )StreamingBodys   foo,bar,baz
1,2,3
4,5,6
s   just,the,header
)content_length)pytestimportorskipbotocore.responser   r   lenr   )r   dataelbodys       N/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/io/test_s3.pytest_streaming_s3_objectsr      sL     
y9/*,@AD WR[RA    c                     t        j                  d       t        d| j                   dd|      }t	        |      dk(  sJ y )Ns3fss3://	/tips.csv   )nrowsstorage_optionsr
   r   r   namer   )s3_public_bucket_with_datas3soresults      r   'test_read_without_creds_from_pub_bucketr       sJ     
*//0	:F
 v;!r   c                     t        j                  d       t        d| j                   ddd |      }t	        |      dk(  sJ y )Nr   r   r      )r   headerr   r   )r   r   dfs      r   $test_read_with_creds_from_pub_bucketr%       sK     	
*//0	:	
B r7a<<r   )
ior   r
   pandasr   r   mark
single_cpur    r%    r   r   <module>r+      sO      	   
 
r   