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