Files
galaxy/test/unit/workflows/workflow_support.py
T
John Chilton 4dcfe4c561 Some very basic unit tests and docs for workflow modules.
Just a start - I need to keep going with this and test and document all methods.
2014-08-26 10:02:49 -04:00

31 lines
629 B
Python

from galaxy.util import bunch
from galaxy.model import mapping
class MockTrans( object ):
def __init__( self ):
self.app = TestApp()
class TestApp( object ):
def __init__( self ):
self.config = bunch.Bunch( )
self.model = mapping.init(
"/tmp",
"sqlite:///:memory:",
create_tables=True
)
self.toolbox = TestToolbox()
class TestToolbox( object ):
def __init__( self ):
self.tools = {}
def get_tool( self, tool_id ):
# Real tool box returns None of missing tool also
return self.tools.get( tool_id, None )