-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: begin work on test infrastructure
- Loading branch information
1 parent
99ef7f7
commit 06b310f
Showing
1 changed file
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |