galaxy.tools.verify package

Submodules

galaxy.tools.verify.test_data module

class galaxy.tools.verify.test_data.FileDataResolver(file_dir)[source]

Bases: object

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

Bases: galaxy.tools.verify.test_data.FileDataResolver

execute(cmd)[source]
exists(filename)[source]
update_repository()[source]
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-7790259-project-62674-galaxy-lib', 'PWD': '/home/docs/checkouts/readthedocs.org/user_builds/galaxy-lib/checkouts/stable/docs', 'BIN_PATH': '/home/docs/checkouts/readthedocs.org/user_builds/galaxy-lib/envs/stable/bin', 'READTHEDOCS_VERSION': 'stable', 'PATH': '/home/docs/checkouts/readthedocs.org/user_builds/galaxy-lib/envs/stable/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/docs/.conda/bin', 'HOME': '/home/docs'})[source]

Bases: object

get_filename(name)[source]
galaxy.tools.verify.test_data.build_resolver(uri, environ)[source]

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.