mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Remove unused `require_new and GALAXY_TEST_HISTORY_ID`
This commit is contained in:
@@ -233,9 +233,6 @@ GALAXY_TEST_TOOL_PATH Path defaulting to 'tools'.
|
||||
GALAXY_TEST_SHED_TOOL_CONF Shed toolbox conf (defaults to
|
||||
config/shed_tool_conf.xml) used when testing
|
||||
installed to tools with -installed.
|
||||
GALAXY_TEST_HISTORY_ID Some tests can target existing history ids, this option
|
||||
is fairly limited and not compatible with parrallel testing
|
||||
so should be limited to debugging one off tests.
|
||||
TOOL_SHED_TEST_HOST Host to use for shed server setup for testing.
|
||||
TOOL_SHED_TEST_PORT Port to use for shed server setup for testing.
|
||||
TOOL_SHED_TEST_FILE_DIR Defaults to lib/tool_shed/test/test_data.
|
||||
|
||||
@@ -729,7 +729,7 @@ class BaseDatasetPopulator(BasePopulator):
|
||||
"""Abstract method for summarizing a target history - override to provide details."""
|
||||
|
||||
@contextlib.contextmanager
|
||||
def test_history(self, cancel_executions: bool = True, require_new: bool = True, **kwds):
|
||||
def test_history(self, cancel_executions: bool = True, **kwds):
|
||||
cleanup = "GALAXY_TEST_NO_CLEANUP" not in os.environ
|
||||
history_id = None
|
||||
|
||||
@@ -738,10 +738,7 @@ class BaseDatasetPopulator(BasePopulator):
|
||||
self.cancel_history_jobs(history_id)
|
||||
|
||||
try:
|
||||
if not require_new:
|
||||
history_id = kwds.get("GALAXY_TEST_HISTORY_ID", None)
|
||||
|
||||
history_id = history_id or self.new_history()
|
||||
history_id = self.new_history()
|
||||
yield history_id
|
||||
wrap_up()
|
||||
except Exception:
|
||||
|
||||
@@ -239,9 +239,6 @@ GALAXY_TEST_TOOL_PATH Path defaulting to 'tools'.
|
||||
GALAXY_TEST_SHED_TOOL_CONF Shed toolbox conf (defaults to
|
||||
config/shed_tool_conf.xml) used when testing
|
||||
installed to tools with -installed.
|
||||
GALAXY_TEST_HISTORY_ID Some tests can target existing history ids, this option
|
||||
is fairly limited and not compatible with parrallel testing
|
||||
so should be limited to debugging one off tests.
|
||||
TOOL_SHED_TEST_HOST Host to use for shed server setup for testing.
|
||||
TOOL_SHED_TEST_PORT Port to use for shed server setup for testing.
|
||||
TOOL_SHED_TEST_FILE_DIR Defaults to lib/tool_shed/test/test_data.
|
||||
|
||||
Reference in New Issue
Block a user