+
    o*j  c                   J    R t ^ RIt^ RIHu Ht ^ RIt^ RIH	t	 R t
R tR tR# )z>Verify the test-persona fixture package is valid and loadable.N)load_packagec                 0   \        R 4      pVP                  pR q2V8H  qD'       g   \        P                  ! RV3RW#34      RR\        P
                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;rCVP                  pRq2V8H  qD'       g   \        P                  ! RV3RW#34      RR\        P
                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;rCVP                  pR	q2V8H  qD'       g   \        P                  ! RV3RW#34      RR\        P
                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;rCVP                  p\        V4      p^qV8H  q'       Eg3   \        P                  ! RV	3RW834      RR
\        P
                  ! 4       9   g!   \        P                  ! \        4      '       d   \        P                  ! \        4      MR
RR\        P
                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          p
RRV
/,          p\        \        P                  ! V4      4      hR;p;p;rR# )ztest-personapy0mpy2py5zassert %(py7)spy7NzTest Persona	generatedlenpy1py3py8zassert %(py10)spy10)==)z,%(py2)s
{%(py2)s = %(py0)s.slug
} == %(py5)s)z4%(py2)s
{%(py2)s = %(py0)s.display_name
} == %(py5)s)z4%(py2)s
{%(py2)s = %(py0)s.voice_policy
} == %(py5)s)zM%(py5)s
{%(py5)s = %(py0)s(%(py3)s
{%(py3)s = %(py1)s.sources
})
} == %(py8)s)r   slug
@pytest_ar_call_reprcompare@py_builtinslocals_should_repr_global_name	_safereprAssertionError_format_explanationdisplay_namevoice_policysourcesr	   )examples_persona_rootr   @py_assert1@py_assert4@py_assert3@py_format6@py_format8@py_assert2@py_assert7@py_assert6@py_format9@py_format11s   &           J/Users/jameslopez/projects/MentorCore/tests/shared/test_example_persona.pytest_load_test_personar'      s   ^$A66#^#^#####6######1####1###6###^########>>+^+^+++++>++++++1++++1+++>+++^++++++++>>([([(((((>((((((1((((1(((>((([((((((((yy3y>QQ>33qqy>Q    c                    V R ,          p\        VP                  R4      4      p\        V4      p^qCV8  qU'       Eg8   \        P                  ! RV3RW434      RR\
        P                  ! 4       9   g!   \        P                  ! \        4      '       d   \        P                  ! \        4      MRRR\
        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V4      /,          p\        P                  ! R4      R	,           R
V/,          p\        \        P                  ! V4      4      hR;p;rTR# )corpusz*.mdr   r	   r
   md_filesr   py6z at least one corpus doc expectedz
>assert %(py8)sr   N)>=)z0%(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} >= %(py6)s)listglobr	   r   r   r   r   r   r   _format_assertmsgr   r   )test_persona_dirr*   r+   r!   @py_assert5r   @py_format7r$   s   &       r&   test_corpus_existsr4      s    (FFKK'(Hx=AAAAAAAA=AAAAAA3AAAA3AAAAAAAxAAAAxAAA=AAAAAAAAAAAAAAAAAr(   c                    V R,          pVR,          P                  4       P                  4        Uu0 uF8  pVP                  4       '       g   K  \        P                  ! V4      R,          kK:  	  ppVR,          P                  4       P                  4        Uu0 uF8  pVP                  4       '       g   K  \        P                  ! V4      R,          kK:  	  ppW4,          pV'       * qf'       g   \
        P                  ! RV 24      R,           RR\        P                  ! 4       9   g   \
        P                  ! V4      '       d   \
        P                  ! V4      MR/,          p\        \
        P                  ! V4      4      hR	pR	# u upi u upi )
z4Holdout passages must not appear in exemplars.jsonl.stylezholdout.jsonltextzexemplars.jsonlu*   holdout ∩ exemplars must be ∅, found: z
>assert not %(py0)sr   overlapN)	read_text
splitlinesstripjsonloadsr   r0   r   r   r   r   r   r   )r1   r6   lineholdout_textsexemplar_textsr8   r   @py_format2s   &       r&   $test_holdout_disjoint_from_exemplarsrB      s   w&E _,779DDFFD::< 	!

4  F   ..99;FFHHD::< 	!

4  H  
 ,G;N;NNDWINNNNNNNNwNNNNwNNNNNNN
s   F!FF5!F)__doc__builtinsr   _pytest.assertion.rewrite	assertionrewriter   r<   shared.packager   r'   r4   rB    r(   r&   <module>rJ      s#    D    'BOr(   