Remove tool errors from export assertion test, use unified state for all modules

This commit is contained in:
guerler
2016-12-08 15:53:27 -05:00
parent c02c9e8dd5
commit f745ee3558
2 changed files with 2 additions and 5 deletions
+2 -3
View File
@@ -46,6 +46,7 @@ class WorkflowModule( object ):
def __init__( self, trans, content_id=None, **kwds ):
self.trans = trans
self.content_id = content_id
self.state = DefaultToolState()
# ---- Creating modules from various representations ---------------------
@@ -53,7 +54,6 @@ class WorkflowModule( object ):
def new( Class, trans, content_id=None ):
module = Class( trans, content_id )
inputs = module.get_inputs()
module.state = DefaultToolState()
module.state.initialize( trans, Bunch( inputs=inputs ) )
module.label = None
return module
@@ -603,14 +603,13 @@ class ToolModule( WorkflowModule ):
type = "tool"
def __init__( self, trans, tool_id, tool_version=None, **kwds ):
self.trans = trans
super( ToolModule, self ).__init__( trans, content_id=tool_id, **kwds )
self.tool_id = tool_id
self.tool_version = tool_version
self.tool = trans.app.toolbox.get_tool( tool_id, tool_version=tool_version )
self.post_job_actions = {}
self.runtime_post_job_actions = {}
self.workflow_outputs = []
self.state = None
self.version_changes = []
# ---- Creating modules from various representations ---------------------
-2
View File
@@ -498,7 +498,6 @@ class WorkflowsApiTestCase( BaseWorkflowsApiTestCase ):
'tool_version',
'name',
'tool_state',
'tool_errors',
'annotation',
'inputs',
'workflow_outputs',
@@ -520,7 +519,6 @@ class WorkflowsApiTestCase( BaseWorkflowsApiTestCase ):
'name',
'tool_state',
'tooltip',
'tool_errors',
'data_inputs',
'data_outputs',
'form_html',