@requires_application()
def test_arrow_draw():
 if ((os.getenv('TRAVIS', 'false') == 'true') and (sys.version[:3] == '2.6')):
  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)
   assert_image_approved(c.render(), ('visuals/arrow_type_%s.png' % arrow_type))
   arrow.parent = None

@ requires_application ( ) def test_arrow_draw ( ) : if ( ( os . getenv ( 'TRAVIS' , 'false' ) == 'true' ) and ( sys . version [ : 3 ] == '2.6' ) ) : 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 ) assert_image_approved ( c . render ( ) , ( 'visuals/arrow_type_%s.png' % arrow_type ) ) arrow . parent = None
test drawing arrows without transforms .