mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Remove tool errors from export assertion test, use unified state for all modules
This commit is contained in:
@@ -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 ---------------------
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user