Fix unit tests for 56076db848

This commit is contained in:
John Chilton
2016-02-26 12:25:34 +00:00
parent 56076db848
commit cb19630bd4
2 changed files with 1 additions and 23 deletions
-23
View File
@@ -12,9 +12,6 @@ from galaxy.util.bunch import Bunch
from galaxy.tools import evaluation
from tools_support import UsesApp
# from tools_support import MockTool
# from ..tools_and_jobs_helpers import MockApp
TEST_TOOL_ID = "cufftest"
TEST_VERSION_COMMAND = "bwa --version"
@@ -123,26 +120,6 @@ class MockJobDispatcher(object):
pass
class MockApp(object):
def __init__(self, object_store, test_directory, model_objects):
self.object_store = object_store
self.toolbox = MockToolbox(MockTool(self))
self.config = Bunch(
outputs_to_working_directory=False,
new_file_path=os.path.join(test_directory, "new_files"),
tool_data_path=os.path.join(test_directory, "tools"),
root=os.path.join(test_directory, "galaxy"),
datatypes_registry=Bunch(
integrated_datatypes_configs=os.path.join(test_directory, "datatypes_conf.xml"),
),
)
self.job_config = Bunch(
dynamic_params=None,
)
self.model = Bunch(context=MockContext(model_objects))
class MockContext(object):
def __init__(self, model_objects):
+1
View File
@@ -106,6 +106,7 @@ class MockApp( object ):
self.config = Bunch(
outputs_to_working_directory=False,
commands_in_new_shell=True,
new_file_path=os.path.join(test_directory, "new_files"),
tool_data_path=os.path.join(test_directory, "tools"),
root=os.path.join(test_directory, "galaxy"),