Eliminate last custom config value setup in scripts/functional_tests.py...

... outside of driver_util. So now we can just use the driver_util config object.
This commit is contained in:
John Chilton
2016-03-29 08:04:27 -04:00
parent 586fa6801b
commit 93cfdff910
3 changed files with 9 additions and 6 deletions
+2 -5
View File
@@ -42,7 +42,6 @@ def main():
start_server = 'GALAXY_TEST_EXTERNAL' not in os.environ
shed_tool_data_table_config = 'config/shed_tool_data_table_conf.xml'
galaxy_test_tmp_dir = driver_util.get_galaxy_test_tmp_dir()
if start_server:
@@ -62,13 +61,11 @@ def main():
if start_server:
# ---- Build Application --------------------------------------------------
kwargs = dict( shed_tool_data_table_config=shed_tool_data_table_config )
kwargs.update(galaxy_config)
app = driver_util.build_galaxy_app(kwargs)
app = driver_util.build_galaxy_app(galaxy_config)
server_wrapper = driver_util.launch_server(
app,
buildapp.app_factory,
kwargs,
galaxy_config,
)
log.info("Functional tests will be run against %s:%s" % (server_wrapper.host, server_wrapper.port))
+6
View File
@@ -95,6 +95,7 @@ def setup_galaxy_config(
use_test_file_dir=False,
default_install_db_merged=True,
default_tool_data_table_config_path=None,
default_shed_tool_data_table_config=None,
enable_tool_shed_check=False,
default_tool_conf=None,
shed_tool_conf=None,
@@ -148,6 +149,10 @@ def setup_galaxy_config(
if shed_tool_conf is not None:
tool_conf = "%s,%s" % (tool_conf, shed_tool_conf)
shed_tool_data_table_config = default_shed_tool_data_table_config
if shed_tool_data_table_config is None:
shed_tool_data_table_config = 'config/shed_tool_data_table_conf.xml'
config = dict(
admin_users='test@bx.psu.edu',
allow_library_path_paste=True,
@@ -169,6 +174,7 @@ def setup_galaxy_config(
new_file_path=new_file_path,
master_api_key=master_api_key,
running_functional_tests=True,
shed_tool_data_table_config=shed_tool_data_table_config,
template_cache_path=template_cache_path,
template_path='templates',
tool_config_file=tool_conf,
+1 -1
View File
@@ -133,7 +133,6 @@ def main():
open( galaxy_shed_data_manager_conf_file, 'wb' ).write( shed_data_manager_conf_xml_template )
kwargs = dict( migrated_tools_config=galaxy_migrated_tool_conf_file,
shed_data_manager_config_file=galaxy_shed_data_manager_conf_file,
shed_tool_data_table_config=shed_tool_data_table_conf_file,
shed_tool_path=galaxy_shed_tool_path,
tool_data_path=tool_data_path,
@@ -144,6 +143,7 @@ def main():
use_test_file_dir=False,
default_install_db_merged=False,
default_tool_data_table_config_path=default_tool_data_table_config_path,
default_shed_tool_data_table_config=shed_tool_data_table_conf_file,
enable_tool_shed_check=True,
shed_tool_conf=galaxy_shed_tool_conf_file,
update_integrated_tool_panel=True,