galaxy.tools.verify package¶
Subpackages¶
Submodules¶
galaxy.tools.verify.test_data module¶
-
class
galaxy.tools.verify.test_data.
TestDataResolver
(file_dirs=None, env_var='GALAXY_TEST_FILE_DIR', environ={'LANG': 'C.UTF-8', 'READTHEDOCS_PROJECT': 'galaxy-lib', 'READTHEDOCS': 'True', 'APPDIR': '/app', 'DEBIAN_FRONTEND': 'noninteractive', 'OLDPWD': '/home/docs', 'HOSTNAME': 'build-8166332-project-62674-galaxy-lib', 'PWD': '/home/docs/checkouts/readthedocs.org/user_builds/galaxy-lib/checkouts/latest/docs', 'BIN_PATH': '/home/docs/checkouts/readthedocs.org/user_builds/galaxy-lib/envs/latest/bin', 'READTHEDOCS_VERSION': 'latest', 'PATH': '/home/docs/checkouts/readthedocs.org/user_builds/galaxy-lib/envs/latest/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/docs/.conda/bin', 'HOME': '/home/docs'})[source]¶ Bases:
object
Module contents¶
Module of utilities for verifying test results.
-
galaxy.tools.verify.
files_contains
(file1, file2, attributes=None)[source]¶ Check the contents of file2 for substrings found in file1, on a per-line basis.
-
galaxy.tools.verify.
files_diff
(file1, file2, attributes=None)[source]¶ Check the contents of 2 files for differences.
-
galaxy.tools.verify.
files_re_match
(file1, file2, attributes=None)[source]¶ Check the contents of 2 files for differences using re.match.
-
galaxy.tools.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.tools.verify.
make_temp_fname
(fname=None)[source]¶ Safe temp name - preserve the file extension for tools that interpret it.
-
galaxy.tools.verify.
verify
(item_label, output_content, attributes, filename=None, get_filename=None, keep_outputs_dir=None, verify_extra_files=None)[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.