
    Rj                         d dl Zd dlmc mZ d dlZd dlZd dlm	Z	 ej                  j                  d d       d dlmZmZ d Zd Zy)    N)Pathz /opt/struktur/social-media-agent)parse_qa_response	qa_passesc            
         ddddddddgdd	} t        t        j                  |             }|d   }d}||k(  }|slt        j                  d|fd||f      t        j
                  |      t        j
                  |      d	z  }d
d|iz  }t        t        j                  |            d x}x}}t        |      }| }|sddt        j                         v st        j                  t              rt        j
                  t              nddt        j                         v st        j                  |      rt        j
                  |      ndt        j
                  |      dz  }t        t        j                  |            d x}}y )NPASSFAILz'Kabel scheint aus der Wand zu entsteheng?	technical_device_plausiblecables_and_connectionsmeasurement_methodanatomybuilding_geometrytopic_matchoverallfailure_reasons
confidencer   )==)z%(py1)s == %(py4)s)py1py4zassert %(py6)spy6z0assert not %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
}r   resultpy0r   py3)r   jsondumps
@pytest_ar_call_reprcompare	_safereprAssertionError_format_explanationr   @py_builtinslocals_should_repr_global_name)payloadr   @py_assert0@py_assert3@py_assert2@py_format5@py_format7@py_assert4s           /tmp/test_aa014_korr05_qa.py,test_critical_cable_fail_forces_overall_failr-   	   s    &,"($#EF
G tzz'23F)&&&&&&&&&&&&&&&&&&&           y   y                       c            
         dddddddg dd	} t        t        j                  |             }t        |      }|sddt	        j
                         v st        j                  t              rt        j                  t              nddt	        j
                         v st        j                  |      rt        j                  |      ndt        j                  |      dz  }t        t        j                  |            d }y )Nr   gffffff?r	   z,assert %(py3)s
{%(py3)s = %(py0)s(%(py1)s)
}r   r   r   )r   r   r   r   r"   r#   r   r$   r   r    r!   )r%   r   r(   @py_format4s       r,   test_all_pass_is_acceptedr1      s    &,"($#
G tzz'23FV99VVr.   )builtinsr"   _pytest.assertion.rewrite	assertionrewriter   r   syspathlibr   pathinsertcodex_image_qar   r   r-   r1    r.   r,   <module>r<      s2       
  5 6 7!"r.   