Warning

This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

galaxy.tool_util.verify package

Module of utilities for verifying test results.

galaxy.tool_util.verify.verify(item_label: str, output_content: bytes, attributes: Dict[str, Any], filename: Optional[str] = None, get_filecontent: Optional[Callable[[str], bytes]] = None, get_filename: Optional[Callable[[str], str]] = None, keep_outputs_dir: Optional[str] = None, verify_extra_files: Optional[Callable] = None, mode='file')[source]

Verify the content of a test output using test definitions described by attributes.

Throw an informative assertion error if any of these tests fail.

galaxy.tool_util.verify.make_temp_fname(fname=None)[source]

Safe temp name - preserve the file extension for tools that interpret it.

galaxy.tool_util.verify.files_delta(file1, file2, attributes=None)[source]

Check the contents of 2 files for size differences.

galaxy.tool_util.verify.get_compressed_formats(attributes)[source]
galaxy.tool_util.verify.files_diff(file1, file2, attributes=None)[source]

Check the contents of 2 files for differences.

galaxy.tool_util.verify.files_re_match(file1, file2, attributes=None)[source]

Check the contents of 2 files for differences using re.match.

galaxy.tool_util.verify.files_re_match_multiline(file1, file2, attributes=None)[source]

Check the contents of 2 files for differences using re.match in multiline mode.

galaxy.tool_util.verify.files_contains(file1, file2, attributes=None)[source]

Check the contents of file2 for substrings found in file1, on a per-line basis.

Submodules

galaxy.tool_util.verify.interactor module

class galaxy.tool_util.verify.interactor.OutputsDict[source]

Bases: dict

Ordered dict that can also be accessed by index.

>>> out = OutputsDict()
>>> out['item1'] = 1
>>> out['item2'] = 2
>>> out[1] == 2 == out['item2']
True
galaxy.tool_util.verify.interactor.stage_data_in_history(galaxy_interactor: GalaxyInteractorApi, tool_id: str, all_test_data, history=None, force_path_paste=False, maxseconds=86400, tool_version=None)[source]
class galaxy.tool_util.verify.interactor.RunToolResponse(inputs, outputs, output_collections, jobs)[source]

Bases: tuple

property inputs

Alias for field number 0

property outputs

Alias for field number 1

property output_collections

Alias for field number 2

property jobs

Alias for field number 3

class galaxy.tool_util.verify.interactor.GalaxyInteractorApi(**kwds)[source]

Bases: object

__init__(**kwds)[source]
cookies: Optional[RequestsCookieJar]
api_key: Optional[str]
keep_outputs_dir: Optional[str]
property target_galaxy_version
property supports_test_data_download
get_tests_summary()[source]
get_tool_tests(tool_id: str, tool_version: Optional[str] = None) List[Dict[str, Any]][source]
verify_output_collection(output_collection_def, output_collection_id, history, tool_id, tool_version=None)[source]
verify_output(history_id, jobs, output_data, output_testdef, tool_id, maxseconds, tool_version=None)[source]
wait_for_jobs(history_id, jobs, maxseconds)[source]
verify_output_dataset(history_id, hda_id, outfile, attributes, tool_id, tool_version=None)[source]
wait_for_job(job_id, history_id=None, maxseconds=86400)[source]
wait_for(func, what='tool test run', **kwd)[source]
get_job_stdio(job_id)[source]
get_history(history_name='test_history')[source]
new_history(history_name='test_history', publish_history=False)[source]
publish_history(history_id)[source]
test_data_path(tool_id, filename, tool_version=None)[source]
test_data_download(tool_id, filename, mode='file', is_output=True, tool_version=None)[source]
stage_data_async(test_data: Dict[str, Any], history_id: str, tool_id: str, force_path_paste: bool = False, maxseconds: int = 86400, tool_version: Optional[str] = None) Callable[[], None][source]
run_tool(testdef, history_id, resource_parameters=None) RunToolResponse[source]
output_hid(output_data)[source]
delete_history(history)[source]
format_for_summary(blob, empty_message, prefix='|  ')[source]
ensure_user_with_email(email, password=None)[source]
api_key_header(key: Optional[str], admin: bool, anon: bool, headers: Optional[Dict[str, Optional[str]]]) Dict[str, Optional[str]][source]
get_api_url(path: str) str[source]
galaxy.tool_util.verify.interactor.prepare_request_params(data: Optional[Dict[str, Any]] = None, files: Optional[Dict[str, Any]] = None, as_json: bool = False, params: Optional[Dict[str, Any]] = None, headers: Optional[Dict[str, Optional[str]]] = None, cookies: Optional[RequestsCookieJar] = None) Dict[str, Any][source]
galaxy.tool_util.verify.interactor.ensure_tool_run_response_okay(submit_response_object, request_desc, inputs=None)[source]
exception galaxy.tool_util.verify.interactor.RunToolException(message, inputs=None, dynamic_param_error=False)[source]

Bases: Exception

__init__(message, inputs=None, dynamic_param_error=False)[source]
galaxy.tool_util.verify.interactor.verify_hid(filename: Optional[str], hda_id: str, attributes: Dict[str, Any], test_data_downloader, dataset_fetcher=None, keep_outputs_dir: Optional[str] = None)[source]
galaxy.tool_util.verify.interactor.verify_collection(output_collection_def, data_collection, verify_dataset)[source]
class galaxy.tool_util.verify.interactor.TestConfig(*args, **kwds)[source]

Bases: Protocol

get_test_config(job_data: Dict[str, Any]) Optional[Dict[str, Any]][source]
__init__(*args, **kwargs)
class galaxy.tool_util.verify.interactor.NullClientTestConfig(*args, **kwds)[source]

Bases: TestConfig

get_test_config(job_data)[source]
class galaxy.tool_util.verify.interactor.DictClientTestConfig(*args, **kwds)[source]

Bases: TestConfig

__init__(tools)[source]
get_test_config(job_data)[source]
galaxy.tool_util.verify.interactor.verify_tool(tool_id: str, galaxy_interactor: GalaxyInteractorApi, resource_parameters: Optional[Dict[str, Any]] = None, register_job_data: Optional[Callable[[Dict[str, Any]], None]] = None, test_index: int = 0, tool_version: Optional[str] = None, quiet: bool = False, test_history: Optional[str] = None, no_history_cleanup: bool = False, publish_history: bool = False, force_path_paste: bool = False, maxseconds: int = 86400, tool_test_dicts: Optional[List[Dict[str, Any]]] = None, client_test_config: Optional[TestConfig] = None, skip_with_reference_data: bool = False, skip_on_dynamic_param_errors: bool = False)[source]
exception galaxy.tool_util.verify.interactor.JobOutputsError(output_exceptions, job_stdio)[source]

Bases: AssertionError

__init__(output_exceptions, job_stdio)[source]
class galaxy.tool_util.verify.interactor.ToolTestDescription(processed_test_dict)[source]

Bases: object

Encapsulates information about a tool test, and allows creation of a dynamic TestCase class (the unittest framework is very class oriented, doing dynamic tests in this way allows better integration)

__init__(processed_test_dict)[source]
test_data()[source]

Iterator over metadata representing the required files for upload.

to_dict()[source]
galaxy.tool_util.verify.interactor.test_data_iter(required_files)[source]

galaxy.tool_util.verify.script module

class galaxy.tool_util.verify.script.TestReference(tool_id, tool_version, test_index)[source]

Bases: tuple

property tool_id

Alias for field number 0

property tool_version

Alias for field number 1

property test_index

Alias for field number 2

class galaxy.tool_util.verify.script.TestException(tool_id, exception, was_recorded)[source]

Bases: tuple

property tool_id

Alias for field number 0

property exception

Alias for field number 1

property was_recorded

Alias for field number 2

class galaxy.tool_util.verify.script.Results(default_suitename: str, test_json: str, append: bool = False, galaxy_url: Optional[str] = None)[source]

Bases: object

__init__(default_suitename: str, test_json: str, append: bool = False, galaxy_url: Optional[str] = None) None[source]
test_exceptions: List[TestException]
register_result(result: Dict[str, Any]) None[source]
register_exception(test_exception: TestException) None[source]
already_successful(test_reference: TestReference) bool[source]
already_executed(test_reference: TestReference) bool[source]
write() None[source]
info_message() str[source]
galaxy.tool_util.verify.script.test_tools(galaxy_interactor: GalaxyInteractorApi, test_references: List[TestReference], results: Results, log: Optional[Logger] = None, parallel_tests: int = 1, history_per_test_case: bool = False, history_name: Optional[str] = None, no_history_reuse: bool = False, no_history_cleanup: bool = False, publish_history: bool = False, retries: int = 0, verify_kwds: Optional[Dict[str, Any]] = None) None[source]

Run through tool tests and write report.

galaxy.tool_util.verify.script.build_case_references(galaxy_interactor: GalaxyInteractorApi, tool_id: str = '*', tool_version: Optional[str] = None, test_index: int = -1, page_size: int = 0, page_number: int = 0, test_filters: Optional[List[Callable[[TestReference], bool]]] = None, log: Optional[Logger] = None) List[TestReference][source]
galaxy.tool_util.verify.script.main(argv=None) None[source]
galaxy.tool_util.verify.script.run_tests(args: Namespace, test_filters: Optional[List[Callable[[TestReference], bool]]] = None, log: Optional[Logger] = None) None[source]
galaxy.tool_util.verify.script.setup_global_logger(name: str, log_file: Optional[str] = None, verbose: bool = False) Logger[source]
galaxy.tool_util.verify.script.arg_parser() ArgumentParser[source]

galaxy.tool_util.verify.test_data module

class galaxy.tool_util.verify.test_data.TestDataResolver(file_dirs=None, env_var='GALAXY_TEST_FILE_DIR', environ=environ({'POWERSHELL_DISTRIBUTION_CHANNEL': 'GitHub-Actions-ubuntu20', 'GITHUB_OUTPUT': '/home/runner/work/_temp/_runner_file_commands/set_output_64e98a12-9c61-45d6-a558-1c155e9d790a', 'ANDROID_NDK_ROOT': '/usr/local/lib/android/sdk/ndk/25.1.8937393', 'GITHUB_EVENT_NAME': 'push', 'GITHUB_ACTION': '__run_8', 'GITHUB_REPOSITORY': 'galaxyproject/galaxy', 'GRADLE_HOME': '/usr/share/gradle-7.6', 'GITHUB_WORKFLOW': 'Build docs', 'PERFLOG_LOCATION_SETTING': 'RUNNER_PERFLOG', 'GITHUB_REF_PROTECTED': 'true', 'JOURNAL_STREAM': '8:22292', 'GITHUB_REF_NAME': 'dev', 'LEIN_HOME': '/usr/local/lib/lein', 'GITHUB_GRAPHQL_URL': 'https://api.github.com/graphql', 'GITHUB_STATE': '/home/runner/work/_temp/_runner_file_commands/save_state_64e98a12-9c61-45d6-a558-1c155e9d790a', 'GITHUB_BASE_REF': '', 'GITHUB_ENV': '/home/runner/work/_temp/_runner_file_commands/set_env_64e98a12-9c61-45d6-a558-1c155e9d790a', 'RUNNER_ARCH': 'X64', 'GOROOT_1_17_X64': '/opt/hostedtoolcache/go/1.17.13/x64', '_': '/usr/bin/make', 'ANDROID_NDK_LATEST_HOME': '/usr/local/lib/android/sdk/ndk/25.1.8937393', 'RUNNER_PERFLOG': '/home/runner/perflog', 'RUNNER_TOOL_CACHE': '/opt/hostedtoolcache', 'Python3_ROOT_DIR': '/opt/hostedtoolcache/Python/3.7.15/x64', 'USER': 'runner', 'DOTNET_MULTILEVEL_LOOKUP': '0', 'DEPLOYMENT_BASEPATH': '/opt/runner', 'DOTNET_SKIP_FIRST_TIME_EXPERIENCE': '1', 'PATH': '/opt/hostedtoolcache/Python/3.7.15/x64/bin:/opt/hostedtoolcache/Python/3.7.15/x64:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin', 'TARGET_BRANCH': 'dev', 'ImageOS': 'ubuntu20', 'GITHUB_ACTION_REF': '', 'GRAALVM_11_ROOT': '/usr/local/graalvm/graalvm-ce-java11-22.3.0', 'GITHUB_SERVER_URL': 'https://github.com', 'PIPX_BIN_DIR': '/opt/pipx_bin', 'PIPX_HOME': '/opt/pipx', 'GITHUB_RUN_NUMBER': '13869', 'GOROOT_1_18_X64': '/opt/hostedtoolcache/go/1.18.8/x64', 'Python_ROOT_DIR': '/opt/hostedtoolcache/Python/3.7.15/x64', 'ANDROID_HOME': '/usr/local/lib/android/sdk', 'GITHUB_ACTOR': 'martenson', 'LEIN_JAR': '/usr/local/lib/lein/self-installs/leiningen-2.9.10-standalone.jar', 'AZURE_EXTENSION_DIR': '/opt/az/azcliextensions', 'STATS_RDCL': 'true', 'GITHUB_TRIGGERING_ACTOR': 'martenson', 'CONDA': '/usr/share/miniconda', 'ANDROID_NDK': '/usr/local/lib/android/sdk/ndk/25.1.8937393', 'JAVA_HOME_8_X64': '/usr/lib/jvm/temurin-8-jdk-amd64', 'ANT_HOME': '/usr/share/ant', 'ImageVersion': '20221125.1', 'GITHUB_REPOSITORY_OWNER': 'galaxyproject', 'HOME': '/home/runner', 'LD_LIBRARY_PATH': '/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/pylibmagic:/opt/hostedtoolcache/Python/3.7.15/x64/lib', 'SGX_AESM_ADDR': '1', 'GECKOWEBDRIVER': '/usr/local/share/gecko_driver', 'RUNNER_TEMP': '/home/runner/work/_temp', 'VCPKG_INSTALLATION_ROOT': '/usr/local/share/vcpkg', 'GITHUB_REF': 'refs/heads/dev', 'GITHUB_PATH': '/home/runner/work/_temp/_runner_file_commands/add_path_64e98a12-9c61-45d6-a558-1c155e9d790a', 'GOROOT_1_19_X64': '/opt/hostedtoolcache/go/1.19.3/x64', 'ANDROID_NDK_HOME': '/usr/local/lib/android/sdk/ndk/25.1.8937393', 'CI': 'true', 'SHLVL': '1', 'HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS': '3650', 'GITHUB_JOB': 'build', 'JAVA_HOME': '/usr/lib/jvm/temurin-11-jdk-amd64', 'GITHUB_REF_TYPE': 'branch', 'GITHUB_ACTION_REPOSITORY': '', 'BOOTSTRAP_HASKELL_NONINTERACTIVE': '1', 'GITHUB_ACTIONS': 'true', 'INVOCATION_ID': '0cce14a5265140d58021589cddbbddd7', 'GITHUB_HEAD_REF': '', 'GITHUB_RUN_ATTEMPT': '1', 'RUNNER_TRACKING_ID': 'github_06b7fbc5-8b38-4902-a7e1-3e5fde1c3ad1', 'MAKEFLAGS': 'w', 'MFLAGS': '-w', 'NVM_DIR': '/home/runner/.nvm', 'GITHUB_EVENT_PATH': '/home/runner/work/_temp/_github_workflow/event.json', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'EDGEWEBDRIVER': '/usr/local/share/edge_driver', 'Python2_ROOT_DIR': '/opt/hostedtoolcache/Python/3.7.15/x64', 'ACCEPT_EULA': 'Y', 'GITHUB_STEP_SUMMARY': '/home/runner/work/_temp/_runner_file_commands/step_summary_64e98a12-9c61-45d6-a558-1c155e9d790a', 'HOMEBREW_NO_AUTO_UPDATE': '1', 'PKG_CONFIG_PATH': '/opt/hostedtoolcache/Python/3.7.15/x64/lib/pkgconfig', 'XDG_CONFIG_HOME': '/home/runner/.config', 'RUNNER_USER': 'runner', 'GITHUB_API_URL': 'https://api.github.com', 'ANDROID_SDK_ROOT': '/usr/local/lib/android/sdk', 'PWD': '/home/runner/work/galaxy/galaxy', 'GITHUB_RUN_ID': '3586671856', 'SWIFT_PATH': '/usr/share/swift/usr/bin', 'DEBIAN_FRONTEND': 'noninteractive', 'CHROME_BIN': '/usr/bin/google-chrome', 'RUNNER_NAME': 'GitHub Actions 9', 'GITHUB_WORKSPACE': '/home/runner/work/galaxy/galaxy', 'GITHUB_SHA': '22682a97953a4473b0fa68978cea7df1b6b0de3b', 'pythonLocation': '/opt/hostedtoolcache/Python/3.7.15/x64', 'RUNNER_WORKSPACE': '/home/runner/work/galaxy', 'CHROMEWEBDRIVER': '/usr/local/share/chrome_driver', 'DOTNET_NOLOGO': '1', 'JAVA_HOME_11_X64': '/usr/lib/jvm/temurin-11-jdk-amd64', 'XDG_RUNTIME_DIR': '/run/user/1001', 'RUNNER_OS': 'Linux', 'GITHUB_RETENTION_DAYS': '90', 'SELENIUM_JAR_PATH': '/usr/share/java/selenium-server.jar', 'JAVA_HOME_17_X64': '/usr/lib/jvm/temurin-17-jdk-amd64', 'LANG': 'C.UTF-8', 'MAKELEVEL': '2', 'DOCUTILSCONFIG': '/home/runner/work/galaxy/galaxy/doc/source/docutils.conf', 'LIBRARY_PATH': '/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/pylibmagic:', 'MAGIC': '/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/pylibmagic/magic.mgc:'}))[source]

Bases: object

__init__(file_dirs=None, env_var='GALAXY_TEST_FILE_DIR', environ=environ({'POWERSHELL_DISTRIBUTION_CHANNEL': 'GitHub-Actions-ubuntu20', 'GITHUB_OUTPUT': '/home/runner/work/_temp/_runner_file_commands/set_output_64e98a12-9c61-45d6-a558-1c155e9d790a', 'ANDROID_NDK_ROOT': '/usr/local/lib/android/sdk/ndk/25.1.8937393', 'GITHUB_EVENT_NAME': 'push', 'GITHUB_ACTION': '__run_8', 'GITHUB_REPOSITORY': 'galaxyproject/galaxy', 'GRADLE_HOME': '/usr/share/gradle-7.6', 'GITHUB_WORKFLOW': 'Build docs', 'PERFLOG_LOCATION_SETTING': 'RUNNER_PERFLOG', 'GITHUB_REF_PROTECTED': 'true', 'JOURNAL_STREAM': '8:22292', 'GITHUB_REF_NAME': 'dev', 'LEIN_HOME': '/usr/local/lib/lein', 'GITHUB_GRAPHQL_URL': 'https://api.github.com/graphql', 'GITHUB_STATE': '/home/runner/work/_temp/_runner_file_commands/save_state_64e98a12-9c61-45d6-a558-1c155e9d790a', 'GITHUB_BASE_REF': '', 'GITHUB_ENV': '/home/runner/work/_temp/_runner_file_commands/set_env_64e98a12-9c61-45d6-a558-1c155e9d790a', 'RUNNER_ARCH': 'X64', 'GOROOT_1_17_X64': '/opt/hostedtoolcache/go/1.17.13/x64', '_': '/usr/bin/make', 'ANDROID_NDK_LATEST_HOME': '/usr/local/lib/android/sdk/ndk/25.1.8937393', 'RUNNER_PERFLOG': '/home/runner/perflog', 'RUNNER_TOOL_CACHE': '/opt/hostedtoolcache', 'Python3_ROOT_DIR': '/opt/hostedtoolcache/Python/3.7.15/x64', 'USER': 'runner', 'DOTNET_MULTILEVEL_LOOKUP': '0', 'DEPLOYMENT_BASEPATH': '/opt/runner', 'DOTNET_SKIP_FIRST_TIME_EXPERIENCE': '1', 'PATH': '/opt/hostedtoolcache/Python/3.7.15/x64/bin:/opt/hostedtoolcache/Python/3.7.15/x64:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin', 'TARGET_BRANCH': 'dev', 'ImageOS': 'ubuntu20', 'GITHUB_ACTION_REF': '', 'GRAALVM_11_ROOT': '/usr/local/graalvm/graalvm-ce-java11-22.3.0', 'GITHUB_SERVER_URL': 'https://github.com', 'PIPX_BIN_DIR': '/opt/pipx_bin', 'PIPX_HOME': '/opt/pipx', 'GITHUB_RUN_NUMBER': '13869', 'GOROOT_1_18_X64': '/opt/hostedtoolcache/go/1.18.8/x64', 'Python_ROOT_DIR': '/opt/hostedtoolcache/Python/3.7.15/x64', 'ANDROID_HOME': '/usr/local/lib/android/sdk', 'GITHUB_ACTOR': 'martenson', 'LEIN_JAR': '/usr/local/lib/lein/self-installs/leiningen-2.9.10-standalone.jar', 'AZURE_EXTENSION_DIR': '/opt/az/azcliextensions', 'STATS_RDCL': 'true', 'GITHUB_TRIGGERING_ACTOR': 'martenson', 'CONDA': '/usr/share/miniconda', 'ANDROID_NDK': '/usr/local/lib/android/sdk/ndk/25.1.8937393', 'JAVA_HOME_8_X64': '/usr/lib/jvm/temurin-8-jdk-amd64', 'ANT_HOME': '/usr/share/ant', 'ImageVersion': '20221125.1', 'GITHUB_REPOSITORY_OWNER': 'galaxyproject', 'HOME': '/home/runner', 'LD_LIBRARY_PATH': '/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/pylibmagic:/opt/hostedtoolcache/Python/3.7.15/x64/lib', 'SGX_AESM_ADDR': '1', 'GECKOWEBDRIVER': '/usr/local/share/gecko_driver', 'RUNNER_TEMP': '/home/runner/work/_temp', 'VCPKG_INSTALLATION_ROOT': '/usr/local/share/vcpkg', 'GITHUB_REF': 'refs/heads/dev', 'GITHUB_PATH': '/home/runner/work/_temp/_runner_file_commands/add_path_64e98a12-9c61-45d6-a558-1c155e9d790a', 'GOROOT_1_19_X64': '/opt/hostedtoolcache/go/1.19.3/x64', 'ANDROID_NDK_HOME': '/usr/local/lib/android/sdk/ndk/25.1.8937393', 'CI': 'true', 'SHLVL': '1', 'HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS': '3650', 'GITHUB_JOB': 'build', 'JAVA_HOME': '/usr/lib/jvm/temurin-11-jdk-amd64', 'GITHUB_REF_TYPE': 'branch', 'GITHUB_ACTION_REPOSITORY': '', 'BOOTSTRAP_HASKELL_NONINTERACTIVE': '1', 'GITHUB_ACTIONS': 'true', 'INVOCATION_ID': '0cce14a5265140d58021589cddbbddd7', 'GITHUB_HEAD_REF': '', 'GITHUB_RUN_ATTEMPT': '1', 'RUNNER_TRACKING_ID': 'github_06b7fbc5-8b38-4902-a7e1-3e5fde1c3ad1', 'MAKEFLAGS': 'w', 'MFLAGS': '-w', 'NVM_DIR': '/home/runner/.nvm', 'GITHUB_EVENT_PATH': '/home/runner/work/_temp/_github_workflow/event.json', 'AGENT_TOOLSDIRECTORY': '/opt/hostedtoolcache', 'EDGEWEBDRIVER': '/usr/local/share/edge_driver', 'Python2_ROOT_DIR': '/opt/hostedtoolcache/Python/3.7.15/x64', 'ACCEPT_EULA': 'Y', 'GITHUB_STEP_SUMMARY': '/home/runner/work/_temp/_runner_file_commands/step_summary_64e98a12-9c61-45d6-a558-1c155e9d790a', 'HOMEBREW_NO_AUTO_UPDATE': '1', 'PKG_CONFIG_PATH': '/opt/hostedtoolcache/Python/3.7.15/x64/lib/pkgconfig', 'XDG_CONFIG_HOME': '/home/runner/.config', 'RUNNER_USER': 'runner', 'GITHUB_API_URL': 'https://api.github.com', 'ANDROID_SDK_ROOT': '/usr/local/lib/android/sdk', 'PWD': '/home/runner/work/galaxy/galaxy', 'GITHUB_RUN_ID': '3586671856', 'SWIFT_PATH': '/usr/share/swift/usr/bin', 'DEBIAN_FRONTEND': 'noninteractive', 'CHROME_BIN': '/usr/bin/google-chrome', 'RUNNER_NAME': 'GitHub Actions 9', 'GITHUB_WORKSPACE': '/home/runner/work/galaxy/galaxy', 'GITHUB_SHA': '22682a97953a4473b0fa68978cea7df1b6b0de3b', 'pythonLocation': '/opt/hostedtoolcache/Python/3.7.15/x64', 'RUNNER_WORKSPACE': '/home/runner/work/galaxy', 'CHROMEWEBDRIVER': '/usr/local/share/chrome_driver', 'DOTNET_NOLOGO': '1', 'JAVA_HOME_11_X64': '/usr/lib/jvm/temurin-11-jdk-amd64', 'XDG_RUNTIME_DIR': '/run/user/1001', 'RUNNER_OS': 'Linux', 'GITHUB_RETENTION_DAYS': '90', 'SELENIUM_JAR_PATH': '/usr/share/java/selenium-server.jar', 'JAVA_HOME_17_X64': '/usr/lib/jvm/temurin-17-jdk-amd64', 'LANG': 'C.UTF-8', 'MAKELEVEL': '2', 'DOCUTILSCONFIG': '/home/runner/work/galaxy/galaxy/doc/source/docutils.conf', 'LIBRARY_PATH': '/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/pylibmagic:', 'MAGIC': '/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/pylibmagic/magic.mgc:'}))[source]
get_filename(name: str) str[source]
get_filecontent(name: str) bytes[source]
get_directory(name: str) str[source]
exception galaxy.tool_util.verify.test_data.TestDataNotFoundError[source]

Bases: ValueError

galaxy.tool_util.verify.test_data.build_resolver(uri, environ)[source]
class galaxy.tool_util.verify.test_data.FileDataResolver(file_dir)[source]

Bases: object

__init__(file_dir)[source]
exists(filename)[source]
path(filename)[source]
class galaxy.tool_util.verify.test_data.GitDataResolver(repository, environ)[source]

Bases: FileDataResolver

__init__(repository, environ)[source]
exists(filename)[source]
update_repository()[source]
execute(cmd)[source]

galaxy.tool_util.verify.wait module

Abstraction for waiting on API conditions to become true.

galaxy.tool_util.verify.wait.wait_on(function: Callable, desc: str, timeout: Union[int, float], delta: Union[int, float] = 0.25, polling_backoff: Union[int, float] = 0, sleep_: Optional[Callable] = None)[source]

Wait for function to return non-None value.

Grow the polling interval (initially delta defaulting to 0.25 seconds) incrementally by the supplied polling_backoff (defaulting to 0).

Throw a TimeoutAssertionError if the supplied timeout is reached without supplied function ever returning a non-None value.

exception galaxy.tool_util.verify.wait.TimeoutAssertionError(message)[source]

Bases: AssertionError

Derivative of AssertionError indicating wait_on exceeded max time.

__init__(message)[source]