Skip to content

Commit

Permalink
ENH: begin work on test infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-gill committed Apr 27, 2019
1 parent 99ef7f7 commit 06b310f
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions tests/test_default.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
def test_dummy():
"""dummy test"""
pass
def test_imports():
'''test that major imports work'''
from vtkAtamai import (ActorFactory, ImagePane, ImagePlaneFactory, OrthoPlanesFactory,
PaneFrame, RenderPane, RenderPane2D, WindowLevelLabel)

def callback(evt, values):
print("vtkAtamai Modified event callback called")

def test_actor_factory():
from vtkAtamai import ActorFactory

o = ActorFactory.ActorFactory()
o.AddObserver("ModifiedEvent", callback)
o.InvokeEvent('ModifiedEvent')
o.tearDown()

def test_image_pane():
from vtkAtamai import ImagePane
pane = ImagePane.ImagePane()

def test_plane_outline_factory():
''' is no longer used it seems'''
from vtkAtamai import PlaneOutlineFactory
o = PlaneOutlineFactory.PlaneOutlineFactory()

0 comments on commit 06b310f

Please sign in to comment.