
    .i                         d dl mZ d dlZd dlmZ ej
                  j                  dddg      d        Zej
                  j                  ej
                  j                  dd	dg      d
               Z	y)    )BytesION)read_csvdatas   foo,bar,baz
1,2,3
4,5,6
s   just,the,header
c                     t        j                  dd       ddlm}  |t	        |       t        |             }t        |       y )Nbotocorez1.10.47)
minversionr   )StreamingBody)content_length)pytestimportorskipbotocore.responser	   r   lenr   )r   r	   bodys      U/var/www/app/trading-bot/venv/lib/python3.12/site-packages/pandas/tests/io/test_s3.pytest_streaming_s3_objectsr      s2     
y9/s4yADTN    headerinferc                     t        j                  d       d}t        d| j                   d|||      }t	        |      |k(  sJ y )Ns3fs   zs3://z	/tips.csv)nrowsr   storage_options)r   r   r   namer   )s3_bucket_public_with_datas3sor   r   dfs        r   0test_read_with_and_without_creds_from_pub_bucketr      sR     E	
*//0	:	
B r7er   )
ior   r   pandasr   markparametrizer   
single_cpur    r   r   <module>r%      sv       "@BV!WX Y GT?3 4 r   