Skip to content

Commit

Permalink
try to fix toolshed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Dec 21, 2021
1 parent 89d910a commit 2a47e13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/tool_shed/test/base/twilltestcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def setUp(self):
self.galaxy_url = f"http://{self.galaxy_host}:{self.galaxy_port}"
self.shed_tool_data_table_conf = os.environ.get('TOOL_SHED_TEST_TOOL_DATA_TABLE_CONF')
self.file_dir = os.environ.get('TOOL_SHED_TEST_FILE_DIR', None)
self.tool_data_path = os.environ.get('GALAXY_TEST_TOOL_DATA_PATH')
self.tool_data_path = os.environ.get('GALAXY_TEST_TOOL_DATA_PATH', 'test/functional/tool-data/')
self.shed_tool_conf = os.environ.get('GALAXY_TEST_SHED_TOOL_CONF')
self.test_db_util = test_db_util
# TODO: Figure out a way to alter these attributes during tests.
Expand Down
7 changes: 2 additions & 5 deletions lib/tool_shed/test/functional_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@ def setup(self):
galaxy_shed_tool_conf_file = os.environ.get('GALAXY_TEST_SHED_TOOL_CONF', os.path.join(tool_shed_test_tmp_dir, 'test_shed_tool_conf.xml'))
galaxy_migrated_tool_conf_file = os.environ.get('GALAXY_TEST_MIGRATED_TOOL_CONF', os.path.join(tool_shed_test_tmp_dir, 'test_migrated_tool_conf.xml'))
galaxy_tool_sheds_conf_file = os.environ.get('GALAXY_TEST_TOOL_SHEDS_CONF', os.path.join(tool_shed_test_tmp_dir, 'test_sheds_conf.xml'))
if 'GALAXY_TEST_TOOL_DATA_PATH' in os.environ:
tool_data_path = os.environ.get('GALAXY_TEST_TOOL_DATA_PATH')
else:
tool_data_path = tempfile.mkdtemp(dir=tool_shed_test_tmp_dir)
os.environ['GALAXY_TEST_TOOL_DATA_PATH'] = tool_data_path
tool_data_path = os.environ.get('GALAXY_TEST_TOOL_DATA_PATH', "test/functional/tool-data/")
os.environ['GALAXY_TEST_TOOL_DATA_PATH'] = tool_data_path
galaxy_db_path = driver_util.database_files_path(tool_shed_test_tmp_dir)
shed_file_path = os.path.join(shed_db_path, 'files')
hgweb_config_file_path = tempfile.mkdtemp(dir=tool_shed_test_tmp_dir)
Expand Down

0 comments on commit 2a47e13

Please sign in to comment.