o
    ;Di                     @   sL   d dl mZmZmZ d dlZd dlmZ dd Zdd Z	dd	 Z
d
d ZdS )    )absolute_importprint_functiondivisionN)eq_c                  C   s.   d} t t| }tt| }t|| d S )N)foobar)a   )b   )cr   )stretllookreprwrapr   tableexpectactual r   S/var/www/Datamplify/venv/lib/python3.10/site-packages/petl/test/test_interactive.py	test_repr   s   r   c                  C   s2   d} t tj| t d}t t| }t|| d S )Nr   )vrepr)r   r   r   r   r   r   r   r   r   test_str   s   r   c                  C   sD   d} d}t |  }t|d|dD ]	\}}t|| qd S )Nr   a  <table class='petl'>
<thead>
<tr>
<th>foo</th>
<th>bar</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td style='text-align: right'>1</td>
</tr>
<tr>
<td>b</td>
<td style='text-align: right'>2</td>
</tr>
<tr>
<td>c</td>
<td style='text-align: right'>2</td>
</tr>
</tbody>
</table>

)r   r   _repr_html_zipsplitr   r   r   r   l1l2r   r   r   test_repr_html   s   r#   c                  C   sT   d} dt j_d}t |  }t| t|d|dD ]	\}}t|| qd S )Nr   r   z<table class='petl'>
<thead>
<tr>
<th>foo</th>
<th>bar</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td style='text-align: right'>1</td>
</tr>
<tr>
<td>b</td>
<td style='text-align: right'>2</td>
</tr>
</tbody>
</table>
<p><strong>...</strong></p>
r   )	r   configdisplay_limitr   r   printr   r   r   r    r   r   r   test_repr_html_limit=   s   r'   )
__future__r   r   r   petlr   petl.test.helpersr   r   r   r#   r'   r   r   r   r   <module>   s    

!