
    Xi7                     \    d dl Zd dlmc mZ d dlmZ d dlZd dl	Z	deddfdZ
deddfdZdS )    N)Pathtmp_pathreturnc                    | dz  }t          j        t          j        dddddddd	d
dddddt	          |          gddt          t                                                    j        d         i t                      ddi          }|j
        }d}||k    }|st          j        d|fd||f          dt          j                    v st          j        |          rt          j        |          ndt          j        |          t          j        |          dz  }t          j        |j                  dz   d|iz  }t'          t          j        |                    d x}x}}|j        } |            }|sddt          j                    v st          j        |          rt          j        |          ndt          j        |          t          j        |          dz  }t'          t          j        |                    d x}}d}	|j        }d }
 ||
!          }|	|v }|st          j        d"|fd#|	|f          t          j        |	          dt          j                    v st          j        |          rt          j        |          ndt          j        |          t          j        |
          t          j        |          d$z  }d%d&|iz  }t'          t          j        |                    d x}	x}x}x}
}d S )'Nz	arch.yamlagent_builder.py--descriptionzstrict architect--namearch--role	Architect
--provideropenai--modelfake--formatyaml--outputT   MULTI_AGENT_FAKE_BUILDER1capture_outputtextcwdenvr   ==z2%(py2)s
{%(py2)s = %(py0)s.returncode
} == %(py5)sresultpy0py2py5
>assert %(py7)spy7zAassert %(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.exists
}()
}output_path)r!   r"   py4z
name: archutf-8encodingin)zX%(py1)s in %(py9)s
{%(py9)s = %(py5)s
{%(py5)s = %(py3)s.read_text
}(encoding=%(py7)s)
})py1py3r#   r%   py9zassert %(py11)spy11)
subprocessrunsys
executablestrr   __file__resolveparentsdict
returncode
@pytest_ar_call_reprcompare@py_builtinslocals_should_repr_global_name	_saferepr_format_assertmsgstderrAssertionError_format_explanationexists	read_text)r   r&   r   @py_assert1@py_assert4@py_assert3@py_format6@py_format8@py_format5@py_assert0@py_assert6@py_assert8@py_assert2@py_format10@py_format12s                  C/root/projects/multi-agents-meeting/tests/test_agent_builder_cli.pytest_agent_builder_writes_yamlrT      sh   [(K^N!	
$ NN""$$,Q/;tvv;4c:;-  F2 00!00000000000000000000060000060000000000000000006=000000000000000000000000;;B;0B'B00'BBBB<BBBBBBBBBBB<BBBBBB<BBBBBBBBBBB;BBBBB;BBBBBB0BBBB'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB    c                    | dz  }t          j        t          j        dddddddd	d
dddddddt	          |          gddt          t                                                    j        d         i t                      ddi          }|j
        }d}||k    }|st          j        d|fd||f          dt          j                    v st          j        |          rt          j        |          ndt          j        |          t          j        |          dz  }t          j        |j                  dz   d|iz  }t'          t          j        |                    d x}x}}|                    d          }d}	|	|v }
|
st          j        d |
fd!|	|f          t          j        |	          d"t          j                    v st          j        |          rt          j        |          nd"d#z  }d$d%|iz  }t'          t          j        |                    d x}	}
d&}	|	|v }
|
st          j        d |
fd!|	|f          t          j        |	          d"t          j                    v st          j        |          rt          j        |          nd"d#z  }d$d%|iz  }t'          t          j        |                    d x}	}
d S )'Nzpm.yamlr   r   zroute the meetingr	   pmr   PMr   r   r   r   z--kindr   r   r   Tr   r   r   r   r   r   r   r   r    r$   r%   r(   r)   next_actionr+   )z%(py1)s in %(py3)sr   )r-   r.   zassert %(py5)sr#   final_report)r1   r2   r3   r4   r5   r   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rF   )r   r&   r   rG   rH   rI   rJ   rK   r   rM   rP   @py_format4s               rS   *test_agent_builder_writes_pm_contract_yamlr\   '   s9   Y&K^N%	
( NN""$$,Q/;tvv;4c:;1  F6 00!00000000000000000000060000060000000000000000006=000000000000000000000000  ' 22D =D          =D     =           D     D                           !>T!!!!!!!!!!>T!!!!!>!!!!!!!!!!!T!!!!!T!!!!!!!!!!!!!!!!!!!!!!!!!!!!!rU   )builtinsr=   _pytest.assertion.rewrite	assertionrewriter;   pathlibr   r1   r3   rT   r\    rU   rS   <module>rc      s                            



CT Cd C C C CB!" !"$ !" !" !" !" !" !"rU   