o
    ;Di                     @   s0   d dl Z d dlmZmZ d dlmZ dd ZdS )    N)ieqeq_c                 C   s\  t tjd |  }t|| t|| | dd}t|| t|| | dd}t|| t|| tt | dd}|  W d   n1 sJw   Y  |d |d f}| dd}t||d t||d |d d }t	|tsyJ tj}dt_tt |  }	|	  W d   n1 sw   Y  |d |d f}
dt_|  }t|
|d t|
|d |d d }t	|tsJ d	t_tt |  }|  W d   n1 sw   Y  dt_|  }t|| t|| dt_| dd}t|| t|| dt_tt | dd}|  W d   n	1 s$w   Y  |t_dS )
zIn the input rows, the first row should process through the
    transformation cleanly.  The second row should generate an
    exception.  There are no requirements for any other rows.F)failonerrorNTr      inline   invalid)
r   configr   r   pytestraises	Exceptionnrowshead
isinstance)input_fnexpected_outputtable2table3table4expect5table5excpsaved_config_failonerrortable6expect7table7table8table9table10table11 r    N/var/www/Datamplify/venv/lib/python3.10/site-packages/petl/test/failonerror.pyassert_failonerror   sh   




















r"   )r
   petl.test.helpersr   r   petl.configr	   r"   r    r    r    r!   <module>   s    