@requires_application()
def test_arrow_transform_draw():
 if (os.getenv('APPVEYOR', '').lower() == 'true'):
  raise SkipTest('AppVeyor has unknown failure')
 old_numpy = (LooseVersion(np.__version__) < '1.8')
 if ((os.getenv('TRAVIS', 'false') == 'true') and ((sys.version[:3] == '2.6') or old_numpy)):
  raise SkipTest('Travis fails due to FB stack problem')
 with TestingCanvas() as c:
  for arrow_type in ARROW_TYPES:
   arrow = visuals.Arrow(pos=vertices, arrow_type=arrow_type, arrows=arrows, arrow_size=10, color='red', connect='segments', parent=c.scene)
   arrow.transform = transforms.STTransform(scale=(0.5, 0.75), translate=((-20), (-20)))
   assert_image_approved(c.render(), ('visuals/arrow_transform_type_%s.png' % arrow_type))
   arrow.parent = None

@ requires_application ( ) def test_arrow_transform_draw ( ) : if ( os . getenv ( 'APPVEYOR' , '' ) . lower ( ) == 'true' ) : raise SkipTest ( 'AppVeyor has unknown failure' ) old_numpy = ( LooseVersion ( np . __version__ ) < '1.8' ) if ( ( os . getenv ( 'TRAVIS' , 'false' ) == 'true' ) and ( ( sys . version [ : 3 ] == '2.6' ) or old_numpy ) ) : raise SkipTest ( 'Travis fails due to FB stack problem' ) with TestingCanvas ( ) as c : for arrow_type in ARROW_TYPES : arrow = visuals . Arrow ( pos = vertices , arrow_type = arrow_type , arrows = arrows , arrow_size = 10 , color = 'red' , connect = 'segments' , parent = c . scene ) arrow . transform = transforms . STTransform ( scale = ( 0.5 , 0.75 ) , translate = ( ( - 20 ) , ( - 20 ) ) ) assert_image_approved ( c . render ( ) , ( 'visuals/arrow_transform_type_%s.png' % arrow_type ) ) arrow . parent = None
tests the arrowvisual when a transform is applied .