. F                                                                                                                                               [ 1 0 0 % ] 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   F A I L U R E S   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   t e s t _ c o m m a n d _ v a l i d a t e _ f l o w   _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
 
 
 
 m o c k _ g e t _ r e p o r t   =   < M a g i c M o c k   n a m e = ' g e t _ r e p o r t '   i d = ' 2 2 9 3 3 8 3 1 6 3 7 7 6 ' > 
 
 m o c k _ s a v e _ r u n   =   < M a g i c M o c k   n a m e = ' s a v e _ r u n '   i d = ' 2 2 9 3 3 8 3 1 6 3 2 9 6 ' > 
 
 m o c k _ s a v e _ i d e a   =   < M a g i c M o c k   n a m e = ' s a v e _ i d e a '   i d = ' 2 2 9 3 3 8 3 9 6 0 3 5 2 ' > 
 
 m o c k _ e x e c u t e _ r u n   =   < A s y n c M o c k   n a m e = ' e x e c u t e _ r u n '   i d = ' 2 2 9 3 3 8 3 9 6 8 2 2 4 ' > 
 
 
 
         @ m o c k . p a t c h ( " a i d e a t o r . c l i . e x e c u t e _ r u n " ) 
 
         @ m o c k . p a t c h ( " d b . i d e a s . s a v e _ i d e a " ) 
 
         @ m o c k . p a t c h ( " d b . r u n s . s a v e _ r u n " ) 
 
         @ m o c k . p a t c h ( " d b . r e p o r t s . g e t _ r e p o r t " ) 
 
         d e f   t e s t _ c o m m a n d _ v a l i d a t e _ f l o w ( m o c k _ g e t _ r e p o r t ,   m o c k _ s a v e _ r u n ,   m o c k _ s a v e _ i d e a ,   m o c k _ e x e c u t e _ r u n ) : 
 
                 #   S e t u p   m o c k s 
 
                 m o c k _ s a v e _ i d e a . r e t u r n _ v a l u e   =   m o c k . M o c k ( i d = U U I D ( " 0 0 0 0 0 0 0 0 - 0 0 0 0 - 0 0 0 0 - 0 0 0 0 - 0 0 0 0 0 0 0 0 0 0 0 1 " ) ) 
 
                 m o c k _ r u n   =   m o c k . M o c k ( r u n _ i d = U U I D ( " 0 0 0 0 0 0 0 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 " ) ) 
 
                 m o c k _ s a v e _ r u n . r e t u r n _ v a l u e   =   m o c k _ r u n 
 
         
 
                 m o c k _ r e p o r t   =   m o c k . M o c k ( ) 
 
                 m o c k _ c a r d   =   m o c k . M o c k ( t i t l e = " C a r d   1 " ,   s c o r e = 9 0 ,   s u m m a r y = " G o o d " ,   t y p e = " d e m a n d " ,   m e t a = { " b a n d " :   " A " } ) 
 
                 m o c k _ r e p o r t . c a r d s   =   [ m o c k _ c a r d ] 
 
                 m o c k _ r e p o r t . a r t i f a c t _ p a t h   =   " p a t h / t o / d o c . m d " 
 
                 m o c k _ g e t _ r e p o r t . r e t u r n _ v a l u e   =   m o c k _ r e p o r t 
 
         
 
                 #   E x e c u t e 
 
                 p a r s e r   =   b u i l d _ p a r s e r ( ) 
 
                 a r g s   =   p a r s e r . p a r s e _ a r g s ( [ " v a l i d a t e " ,   " T e s t   T i t l e " ] ) 
 
         
 
                 w i t h   m o c k . p a t c h ( " b u i l t i n s . p r i n t " )   a s   m o c k _ p r i n t : 
 
 >                       c o m m a n d _ v a l i d a t e ( a r g s ) 
 
 
 
 t e s t s \ i n t e g r a t i o n \ a i d e a t o r \ t e s t _ c l i _ v a l i d a t e . p y : 3 5 :   
 
 _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _   _ 
 
 
 
 a r g s   =   N a m e s p a c e ( h o s t = ' 1 2 7 . 0 . 0 . 1 ' ,   p o r t = 8 0 0 0 ,   r e l o a d = F a l s e ,   c o m m a n d = ' v a l i d a t e ' ,   t i t l e = ' T e s t   T i t l e ' ,   d e s c r i p t i o n = N o n e ,   m o d e = N o n e ,   f u n c = < f u n c t i o n   c o m m a n d _ v a l i d a t e   a t   0 x 0 0 0 0 0 2 1 5 F 8 3 D 5 B 4 0 > ) 
 
 
 
         d e f   c o m m a n d _ v a l i d a t e ( a r g s :   a r g p a r s e . N a m e s p a c e )   - >   N o n e : 
 
                 " " " R u n   ` a i d e a t o r   v a l i d a t e   " < t i t l e > " `   b e h a v i o r . " " " 
 
                 t i t l e   =   a r g s . t i t l e 
 
                 d e s c r i p t i o n   =   a r g s . d e s c r i p t i o n   o r   " " 
 
                 m o d e   =   a r g s . m o d e   o r   s e t t i n g s . a p p _ d e f a u l t _ m o d e 
 
         
 
                 p r i n t ( f " \ U 0 0 0 1 f 6 8 0   V a l i d a t i n g   i d e a :   { t i t l e } . . . " ) 
 
                 p r i n t ( f " \ U 0 0 0 1 f 4 e 1   M o d e :   { m o d e } " ) 
 
         
 
                 #   1 .   C r e a t e   I d e a 
 
 >               i d e a   =   s a v e _ i d e a ( I d e a ( t i t l e = t i t l e ,   d e s c r i p t i o n = d e s c r i p t i o n ) ) 
 
 E               T y p e E r r o r :   I d e a . _ _ i n i t _ _ ( )   m i s s i n g   2   r e q u i r e d   p o s i t i o n a l   a r g u m e n t s :   ' t a r g e t _ u s e r '   a n d   ' c o n t e x t ' 
 
 
 
 a i d e a t o r \ c l i . p y : 4 7 1 :   T y p e E r r o r 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   w a r n i n g s   s u m m a r y   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 a p i \ a p p . p y : 1 2 1 
 
     C : \ U s e r s \ R i c h a \ O n e D r i v e \ D o c u m e n t s \ P r o j e c t s \ A I d e a t o r \ a p i \ a p p . p y : 1 2 1 :   D e p r e c a t i o n W a r n i n g :   
 
                     o n _ e v e n t   i s   d e p r e c a t e d ,   u s e   l i f e s p a n   e v e n t   h a n d l e r s   i n s t e a d . 
 
     
 
                     R e a d   m o r e   a b o u t   i t   i n   t h e 
 
                     [ F a s t A P I   d o c s   f o r   L i f e s p a n   E v e n t s ] ( h t t p s : / / f a s t a p i . t i a n g o l o . c o m / a d v a n c e d / e v e n t s / ) . 
 
                     
 
         @ a p p . o n _ e v e n t ( " s t a r t u p " ) 
 
 
 
 . . \ . . \ . . \ . . \ a n a c o n d a 3 \ l i b \ s i t e - p a c k a g e s \ f a s t a p i \ a p p l i c a t i o n s . p y : 4 5 9 9 
 
     C : \ U s e r s \ R i c h a \ a n a c o n d a 3 \ l i b \ s i t e - p a c k a g e s \ f a s t a p i \ a p p l i c a t i o n s . p y : 4 5 9 9 :   D e p r e c a t i o n W a r n i n g :   
 
                     o n _ e v e n t   i s   d e p r e c a t e d ,   u s e   l i f e s p a n   e v e n t   h a n d l e r s   i n s t e a d . 
 
     
 
                     R e a d   m o r e   a b o u t   i t   i n   t h e 
 
                     [ F a s t A P I   d o c s   f o r   L i f e s p a n   E v e n t s ] ( h t t p s : / / f a s t a p i . t i a n g o l o . c o m / a d v a n c e d / e v e n t s / ) . 
 
                     
 
         r e t u r n   s e l f . r o u t e r . o n _ e v e n t ( e v e n t _ t y p e ) 
 
 
 
 - -   D o c s :   h t t p s : / / d o c s . p y t e s t . o r g / e n / s t a b l e / h o w - t o / c a p t u r e - w a r n i n g s . h t m l 
 
 = = = = = = = = = = = = = = = = = = = = = = = = = = =   s h o r t   t e s t   s u m m a r y   i n f o   = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 F A I L E D   t e s t s / i n t e g r a t i o n / a i d e a t o r / t e s t _ c l i _ v a l i d a t e . p y : : t e s t _ c o m m a n d _ v a l i d a t e _ f l o w 
 
 1   f a i l e d ,   1   p a s s e d ,   2   w a r n i n g s   i n   2 . 6 1 s 
 
 