
     j                     J    d dl Zd dlmc mZ d dlmZmZ  G d d          Z	dS )    N)	DataFrame
MultiIndexc                   ,    e Zd Zd Zd Zd Zd Zd ZdS )TestTableSchemaReprc                    |                     |j                  }t          dddgi          }|d         |g}ddhh dg}t          j        dd	          }d }t          ||          D ]h\  }}	|}|5  |j                            |          }
d d d            n# 1 swxY w Y   t          |
d
         	                                          |	k    sJ it          j        dd          }|5  |5  |j                            |          }
d d d            n# 1 swxY w Y   d d d            n# 1 swxY w Y   h d}	t          |
d
         	                                          |	k    sJ d S )NconfigA      
text/plain!application/vnd.dataresource+json>   	text/htmlr   r   display.html.table_schemaTr   zstyler.render.reprlatex>   
text/latexr   r   r   )
instancer	   r   cfoption_contextzipdisplay_formatterformatsetkeys)selfipipythondfobjectsexpected_keysoptlast_objobjexpected	formatted
with_latexs               C:\Users\Terasoftware\OneDrive\Desktop\faahhh\fyndo\fyndo\venv\Lib\site-packages\pandas/tests/io/formats/test_ipython_compat.pytest_publishesz"TestTableSchemaRepr.test_publishes   s~   ++RY+//aV}%%c7B->?LLL

  ;TBB -88 	8 	8MCH B B#5<<SAA	B B B B B B B B B B B B B B By|((**++x77777&';WEE
 	C 	C* 	C 	C188BBI	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C 	C
 
 
 9Q<$$&&''8333333sH   1BB	B	(D)+DD)D	D)D	D))D-0D-c                     t          j        ddgg dg          }t          t          j                            d                              dt          |          f          |          }t          j	        dd          }|5  |
                    |j        	          j                            |          }d d d            n# 1 swxY w Y   d
dh}t          |d                                                   |k    sJ d S )Nr
   B)abcr      )columnsr   Tr   r   r   r   )r   from_productr   nprandomdefault_rngstandard_normallenr   r   r   r	   r   r   r   r   )r   r   midxr   r!   r%   r$   s          r'   test_publishes_not_implementedz2TestTableSchemaRepr.test_publishes_not_implemented*   sD    &c
OOO'DEEI!!!$$44aT^DDd
 
 
  ;TBB 	S 	S2955GNNrRRI	S 	S 	S 	S 	S 	S 	S 	S 	S 	S 	S 	S 	S 	S 	S !+.9Q<$$&&''8333333s   4CC	Cc                     t          dddgi          }t          j        dd          5  |                                }d d d            n# 1 swxY w Y   |J d S )Nr
   r   r   r   Tr   r   r   _repr_data_resource_r   r   results      r'   test_config_onz"TestTableSchemaRepr.test_config_on:   s    aV}%%:DAA 	/ 	/,,..F	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ !!!!!   A

AAc                     t          dddgi          }t          j        dd          5  |                                }d d d            n# 1 swxY w Y   |J d S )Nr
   r   r   r   Fr9   r;   s      r'   test_config_default_offz+TestTableSchemaRepr.test_config_default_offA   s    aV}%%:EBB 	/ 	/,,..F	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ r>   c                    |                     |j                  j        j        }d}t	          j        dd          5  d|v sJ ||         j        sJ 	 d d d            n# 1 swxY w Y   d|v sJ ||         j        rJ t	          j        dd          5  d|v sJ ||         j        sJ |                     |j                  j                            t                     d d d            d S # 1 swxY w Y   d S )Nr   r   r   T)r   r	   r   
formattersr   r   enabledr   )r   r   rB   mimetypes       r'   #test_enable_data_resource_formatterz7TestTableSchemaRepr.test_enable_data_resource_formatterH   s   [[	[22DO
6:DAA 	0 	06*DDDDh'/////	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0
 3j@@@@h'//// :DAA 	G 	G6*DDDDh'////KKryK));BB2FFF		G 	G 	G 	G 	G 	G 	G 	G 	G 	G 	G 	G 	G 	G 	G 	G 	G 	Gs$   A  A$'A$AC00C47C4N)__name__
__module____qualname__r(   r7   r=   r@   rE        r'   r   r      sd        4 4 4<4 4 4 " " "  G G G G GrJ   r   )
numpyr1   pandas._config.config_configr	   r   pandasr   r   r   rI   rJ   r'   <module>rO      s        " " " " " " " " "       OG OG OG OG OG OG OG OG OG OGrJ   