Mark method parameter as meant to be used only for testing.

Trying to figure out why converter tests are broken in tool state typing branch.
This commit is contained in:
John Chilton
2022-12-13 09:53:55 -05:00
parent 4efb6a8a98
commit bb9cf69ea1
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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
+4 -4
View File
@@ -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,
)