+
    #j2                        R t ^ RIHt ^ RIt^ RIHtHtHtHt  ! R R4      t ! R R4      t	 ! R R	4      t
 ! R
 R4      t ! R R4      tR# )zTests for extract_schema.py.)annotationsN)extract_schemafind_negative_prompt_nodefind_positive_prompt_nodetrace_to_nodec                  (    ] tR t^tR tR tR tRtR# )TestConnectionTracingc                	`    R RRRRR//RRRRRR ^ .R	R ^ .///p\        VR ^ .4      R 8X  g   Q hR
# )1
class_typeCLIPTextEncodeinputstextx2KSamplerpositivenegativeNr   selfwfs   & k/opt/hermes-venv/lib/python3.14/site-packages/../../../skills/creative/comfyui/tests/test_extract_schema.pytest_direct_link&TestConnectionTracing.test_direct_link   sZ    , 0(VSMJ,
Z#q:QxHJ

 R#q*c111    c                	l    R RRRRR//RRRRRR ^ .//R	RRRRR^ .///p\        VR	^ .4      R 8X  g   Q hR
# )r
   r   r   r   r   r   r   Rerouteinput3Nr   r   s   & r   test_through_reroute*TestConnectionTracing.test_through_reroute   se    , 0(VSMJ,	8gQx5HI,	8gQx5HI

 R#q*c111r   c           	     	d    R RRRRR^ .//RRRRRR ^ .///p\        VR ^ .^R7      pVR9   g   Q hR# )	r
   r   r   r   r   r   )max_hopsN>   r
   r   r   )r   r   results   &  r   test_circular_safe(TestConnectionTracing.test_circular_safe$   sY    ,	8gQx5HI,	8gQx5HI

 rC8a8###r    N)__name__
__module____qualname____firstlineno__r   r    r%   __static_attributes__r'   r   r   r   r      s    22$r   r   c                  "    ] tR t^.tR tR tRtR# )TestPositiveNegativeDetectionc                	N    \        V4      R 8X  g   Q h\        V4      R8X  g   Q hR# )67Nr   r   )r   sd15_workflows   &&r   
test_basic(TestPositiveNegativeDetection.test_basic/   s(    (73>>>(73>>>r   c                	    R RRRRR^ .RR^ .RR	^ .R
R^ .R^R^RRRRRRRR/
/R	RRRRR//RRRRRRRRR^//RRRRRR R!R	^.//RRRRRR"R!R	^.///p\        V4      R8X  g   Q h\        V4      R8X  g   Q hR## )$r   r   r   r   r   r1   r   r0   model4latent_image5seedstepscfg      @sampler_nameeuler	schedulernormaldenoise      ?CheckpointLoaderSimple	ckpt_namer   EmptyLatentImagewidth   height
batch_sizer   r   uglyclip	beautifulNr2   r   s   & r   test_swapped_order0TestPositiveNegativeDetection.test_swapped_order4   s    ,
 3(JaQx#qa"eS$g{HiQT	 , 8([RUDVW, 2HwXWZ\hjk>lm, 0(VVVVY[\U]<^_, 0(V[RX[^`aZb<cd
 ),333(,333r   r'   N)r(   r)   r*   r+   r4   rO   r,   r'   r   r   r.   r.   .   s    ?
4r   r.   c                  @    ] tR t^KtR tR tR tR tR tR t	R t
RtR	# )
TestExtractSchemac                	    \        V4      pVR ,          pRV9   g   Q hRV9   g   Q hRV9   g   Q hRV9   g   Q hRV9   g   Q hRV9   g   Q hRV9   g   Q hR# )	
parameterspromptnegative_promptr;   r<   r=   rH   rJ   Nr   )r   r3   schemaparamss   &&  r   test_basic_sd15!TestExtractSchema.test_basic_sd15L   sv    .%6!!! F***&   &   6!!!r   c                	    \        V4      pR VR,          R,          R,          9   g   Q hRVR,          R,          R,          9   g   Q hR# )	landscaperT   rU   valuerL   rV   NrW   r   r3   rX   s   && r   test_prompt_value_correct+TestExtractSchema.test_prompt_value_correctW   sG    .f\28<WEEEE-.?@IIIIr   c                	    \        V4      pVR ,          pV Uu. uF  qDR,          R8X  g   K  VR,          NK  	  ppRV9   g   Q hR# u upi )model_dependenciesfoldercheckpointsr^   zv1-5-pruned-emaonly.safetensorsNrW   )r   r3   rX   depsdckptss   &&    r   test_model_dependencies)TestExtractSchema.test_model_dependencies]   sP    .*+%)JTx[M-I7TJ0E999 Ks
   AAc                	<    \        V4      pR VR,          9   g   Q hR# )9output_nodesNrW   r_   s   && r   test_output_nodes#TestExtractSchema.test_output_nodesc   s    .f^,,,,r   c                	    \        V4      pVR ,          pVR,          RJ g   Q hVR,          RJ g   Q hVR,          RJ g   Q hVR,          ^8  g   Q hR# )summaryhas_negative_promptThas_seedis_video_workflowFparameter_countNrW   )r   r3   rX   ss   &&  r   test_summaryTestExtractSchema.test_summaryg   sd    .9&'4///}$$$$%..."#a'''r   c                	t    \        V4      pVR ,          R,          RJ g   Q hVR ,          R,          RJ g   Q hR# )rq   rs   Trr   FNrW   )r   flux_workflowrX   s   && r   test_flux_workflow$TestExtractSchema.test_flux_workflowo   s=    .i ,444i !675@@@r   c                	H    \        V4      pVR ,          R,          RJ g   Q hR# )rq   rt   TNrW   )r   video_workflowrX   s   && r   test_video_detected%TestExtractSchema.test_video_detectedv   s%    /i !45===r   r'   N)r(   r)   r*   r+   rZ   r`   ri   rn   rw   r{   r   r,   r'   r   r   rR   rR   K   s'    	"J:-(A>r   rR   c                      ] tR t^{tR tRtR# )TestEmbeddingDepsc                 	B   R RRRRR//RRRRRR	R
R	R^//RRRRRRRR ^.//RRRRRRRR ^.//RRRRRR^ .RR^ .RR ^ .RR^ .R^R^RRRRRR R!R"/
/R#RR$RR%RR&R^ .///p\        V4      pVR',           Uu. uF  q3R(,          NK  	  pp\        V4      . R*O8X  g   Q hR)# u upi )+r
   r   rE   r   rF   r   r:   rG   rH   rI   rJ   rK   r0   r   r   z-a cat, embedding:goodvibes, embedding:art:1.2rM   r1   zugly, embedding:badhandsr   r   r   r   r7   r9   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rl   	SaveImagefilename_prefiximagesembedding_dependenciesembedding_nameN)artbadhands	goodvibes)r   sorted)r   r   rX   rg   namess   &    r   test_extract_from_prompt*TestEmbeddingDeps.test_extract_from_prompt|   sE   , 8([RUDVW, 2Wc8S,JL, 0MsAh
 , 08sAh
 ,
 3(JaQx#qa"eS$g{HiQT	 ,X8I3PX[^`aZb7cd+
.  #.45M.NO.N#$$.NOe} @@@@ Ps   3Br'   N)r(   r)   r*   r+   r   r,   r'   r   r   r   r   {   s    Ar   r   c                      ] tR t^tR tRtR# )TestDuplicateDeduplicationc           "     	   R RRRRR//RRRRRR	R
R	R^//RRRRRRRR ^.//RRRRRRRR ^.//RRRRRR^ .RR^ .RR ^ .RR^ .R^*R^RRRRRR R!R"/
/R#RRRRR^ .RR^ .RR ^ .RR^ .R^cR^RR$RRRR R!R%/
/R&RR'RR(RR)R^ .///p\        V4      pVR*,          pV Uu. uF  pRV9   g   K  VNK  	  ppRV9  g   Q hR+V9   d   R,V9   g   Q hVR+,          R-,          ^*8X  g   Q hVR,,          R-,          ^c8X  g   Q hR.# u upi )/r
   r   rE   r   rF   r   r:   rG   rH   rI   rJ   rK   r0   r   r   arM   r1   br   r   r   r   r7   r9   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   r8   g       @g333333?rl   r   r   r   rT   seed_3seed_4r^   NrW   )r   r   rX   rY   k	seed_keyss   &     r   #test_two_ksamplers_get_unique_names>TestDuplicateDeduplication.test_two_ksamplers_get_unique_names   s   , 8([RUDVW, 2Wc8S,JL, 0(VS&SVXYRZ<[\, 0(VS&SVXYRZ<[\,
 3(JaQx#qb'2uc$g{HiQT	 ,
 3(JaQx#qb'2uc$g{HiQT	 ,X8I3PX[^`aZb7cd)
,  #% &61&A+QQ	6V###6!h&&888h(B...h(B... 7s   	C6%C6r'   N)r(   r)   r*   r+   r   r,   r'   r   r   r   r      s    /r   r   )__doc__
__future__r   pytestr   r   r   r   r   r.   rR   r   r   r'   r   r   <module>r      sM    " "  $ $64 4:-> ->`A A< /  /r   