Remove unused `require_new and GALAXY_TEST_HISTORY_ID`

This commit is contained in:
Nicola Soranzo
2022-11-07 15:44:02 +00:00
parent 3a8997ccf2
commit 581d001828
3 changed files with 2 additions and 11 deletions
-3
View File
@@ -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.
+2 -5
View File
@@ -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:
-3
View File
@@ -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.