o
    _~#g                     @   sL   d dl mZ d dlZd dlmZ dd Zejjdd Zejjdd	 Z	dS )
    )BytesION)read_csvc                  C   sL   t jddd ddlm}  ddg}|D ]}| t|t|d}t| qd S )	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body r   |/var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/io/test_s3.pytest_streaming_s3_objects   s   
r   c                 C   s6   t d td| j dd|d}t|dksJ d S )Ns3fss3://	/tips.csv   )nrowsstorage_optionsr   r	   r   namer   )s3_public_bucket_with_datas3soresultr   r   r   'test_read_without_creds_from_pub_bucket   s   
r   c                 C   s8   t d td| j ddd |d}t|dksJ d S )Nr   r   r      )r   headerr   r   )r   r   dfr   r   r   $test_read_with_creds_from_pub_bucket    s   
r!   )
ior   r   pandasr   r   mark
single_cpur   r!   r   r   r   r   <module>   s    
