mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #15199 from jmchilton/tool_test_typing_decompose_3
Mark method parameter as meant to be used only for testing.
This commit is contained in:
@@ -1273,16 +1273,16 @@ def verify_tool(
|
||||
publish_history: bool = False,
|
||||
force_path_paste: bool = False,
|
||||
maxseconds: int = DEFAULT_TOOL_TEST_WAIT,
|
||||
tool_test_dicts: Optional[ToolTestDictsT] = None,
|
||||
client_test_config: Optional[TestConfig] = None,
|
||||
skip_with_reference_data: bool = False,
|
||||
skip_on_dynamic_param_errors: bool = False,
|
||||
_tool_test_dicts: Optional[ToolTestDictsT] = None, # extension point only for tests
|
||||
):
|
||||
if resource_parameters is None:
|
||||
resource_parameters = {}
|
||||
if client_test_config is None:
|
||||
client_test_config = NullClientTestConfig()
|
||||
tool_test_dicts = tool_test_dicts or galaxy_interactor.get_tool_tests(tool_id, tool_version=tool_version)
|
||||
tool_test_dicts = _tool_test_dicts or galaxy_interactor.get_tool_tests(tool_id, tool_version=tool_version)
|
||||
tool_test_dict = tool_test_dicts[test_index]
|
||||
if "test_index" not in tool_test_dict:
|
||||
tool_test_dict["test_index"] = test_index
|
||||
|
||||
@@ -1472,7 +1472,7 @@ class TestToolsApi(ApiTestCase, TestsTools):
|
||||
dynamic_param_error = None
|
||||
test_driver = self.driver_or_skip_test_if_remote()
|
||||
try:
|
||||
test_driver.run_tool_test("dbkey_output_action", tool_test_dicts=tool_test_dicts)
|
||||
test_driver.run_tool_test("dbkey_output_action", _tool_test_dicts=tool_test_dicts)
|
||||
except Exception as e:
|
||||
dynamic_param_error = getattr(e, "dynamic_param_error", False)
|
||||
assert dynamic_param_error is None
|
||||
@@ -1486,7 +1486,7 @@ class TestToolsApi(ApiTestCase, TestsTools):
|
||||
)
|
||||
dynamic_param_error = None
|
||||
try:
|
||||
test_driver.run_tool_test("dbkey_output_action", tool_test_dicts=tool_test_dicts)
|
||||
test_driver.run_tool_test("dbkey_output_action", _tool_test_dicts=tool_test_dicts)
|
||||
except Exception as e:
|
||||
dynamic_param_error = getattr(e, "dynamic_param_error", False)
|
||||
assert dynamic_param_error
|
||||
@@ -1501,7 +1501,7 @@ class TestToolsApi(ApiTestCase, TestsTools):
|
||||
dynamic_param_error = None
|
||||
try:
|
||||
test_driver.run_tool_test(
|
||||
"dbkey_output_action", tool_test_dicts=tool_test_dicts, register_job_data=register_job_data
|
||||
"dbkey_output_action", _tool_test_dicts=tool_test_dicts, register_job_data=register_job_data
|
||||
)
|
||||
except Exception as e:
|
||||
dynamic_param_error = getattr(e, "dynamic_param_error", False)
|
||||
@@ -1515,7 +1515,7 @@ class TestToolsApi(ApiTestCase, TestsTools):
|
||||
try:
|
||||
test_driver.run_tool_test(
|
||||
"dbkey_output_action",
|
||||
tool_test_dicts=tool_test_dicts,
|
||||
_tool_test_dicts=tool_test_dicts,
|
||||
skip_on_dynamic_param_errors=True,
|
||||
register_job_data=register_job_data,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user