'Vfi"ddlZddlZddlZddlZddlZddlmZmZmZm Z ddl m cm Z ddlmcmZddlmZejdZejdZejdZejdZejdZejd Zejd Zejd Zejd Zejd ZejdZejdZ ejdZ!ddddddddddej"de j#dej"de j#dg Z$eje$dd d!Z%eje$ d"Z&dS)#N)is_ci_environmentis_platform_armis_platform_macis_platform_windowsread_csvcRdtjDS)Nci|]\}}|| Sr ).0keyvalues Gc:\PYTHON\DbComparer\venv\Lib\site-packages\pandas/tests/io/conftest.py z,compression_to_extension..s O O O:3E3 O O O)icomextension_to_compressionitemsr rrcompression_to_extensionrs% O O)F)L)L)N)N O O OOrc|ddddS)zPath to the tips datasetiodatacsvtips.csvr datapaths r tips_filers 8D&% 4 44rc|ddddS)zPath to a JSONL datasetrparserr items.jsonlr rs r jsonl_filer!s 8D(FM : ::rc<t|dddddS)z#DataFrame with the salaries datasetrrrz salaries.csv )seprrs rsalaries_tabler%%s' HHT8V^DD$ O O OOrc|ddddS)Nrrfeatherzfeather-0_3_1.featherr rs r feather_filer(+s 8D&)-D E EErc|ddddS)Nrrxml books.xmlr rs rxml_filer,0s 8D&% 5 55rc#Ktjdtjd|dd|ddtrFt st st rtjddSdVdStjd }tjd tjd |d krd n|d}d|}d|d}tj tj d|tj tj 5}d}|dkrN ||}|jrn0n#t $rYnwxYw|dz}t#jd|dkN|V|ddddS#1swxYwYdS)z Fixture for mocking S3 interaction. Sets up moto server in separate process locally Return url for motoserver/moto CI service s3fsboto3AWS_ACCESS_KEY_ID foobar_keyAWS_SECRET_ACCESS_KEY foobar_secretzJS3 tests do not have a corresponding service on Windows or macOS platformszhttp://localhost:5000requestsmotoflaskmaster5gw555zhttp://127.0.0.1:/zmoto_server s3 -p )stdoutstderrrg?N)pytest importorskipsetenvrrrrskiplstrip subprocessPopenshlexsplitDEVNULLgetok Exceptiontimesleep terminate) worker_id monkeypatchr4 endpoint_port endpoint_uriproctimeoutrs rs3_baserV5sq     *L999.@@@,    * 1 1 *5H5J5J * K-      * ) ) ) ) )&z22F###G$$$ %00CCi6F6Ft6L6L )i)) ;=;;;   K<]<< = =%%    GA++ \22At D3 3A++    NN   %                  s6 G E75G 7 FG F:G  GGcdd|iiS)N client_kwargs endpoint_urlr )rVs rs3sorZss ng6 77rc<ddl}|d|}|S)Nrs3)rY)r/resource)rVr/r\s r s3_resourcer^xs%LLL 7 3 3B Irc#K|dtj}||V|j|dS)Nz pandas-test-Bucketuuiduuid4createobjectsdeleter^buckets rs3_public_bucketrisc    =tz|| = = > >F MMOOO LLL N MMOOOOOrcd|fd|fd|dzfd|dzfd|fd|fd |fg}|D]D\}}t|d 5}||| d d d n #1swxYwYE|S zw The following datasets are loaded. - tips.csv - tips.csv.gz - tips.csv.bz2 - items.jsonl z tips#1.csvrz tips.csv.gz.gzz tips.csv.bz2.bz2r zsimple_dataset.featherr+rb)KeyBodyNopen put_object) rirr!r(r, test_s3_filess3_key file_namefs rs3_public_bucket_with_datarxs y! Y  E)* V+,  # !<0 hM+<< )T " " >F MMiM   LLL N MMOOOOOrcd|fd|fd|dzfd|dzfd|fd|fd |fg}|D]D\}}t|d 5}||| d d d n #1swxYwYE|Srkrq) r}rr!r(r,rtrurvrws rs3_private_bucket_with_datars y! Y  E)* V+,  # !<0 hM+== )T " " =a  ( (V! ( < < < = = = = = = = = = = = = = = = ry)z .no_compressN)N)rlgzip)z.GZr)rmbz2)z.BZ2r)z.zipzip)z.ZIPr)z.xzxz)z.XZr)z.zstzstd zstandard)marks)z.ZSTr)paramsc|jS)Nparamrequests rcompression_formatrs =rc|jdS)Nrrrs rcompression_extrs = r)'rFrDrLrbr? pandas.compatrrrrpandas.util._test_decoratorsutil_test_decoratorstdpandas.io.commonrcommonrpandas.io.parsersrfixturerrr!r%r(r,rVrZr^rirxr}rr skip_if_no_compression_formats_paramsrrr rrrs   *))))))))&&&&&&PPP555 ;;; PPP FFF666:::z88868FL!{)C)CDDDFL!{)C)CDDD  2122677787233343r