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.objectstore.unittest_utils package

Utilities for configuring and using objectstores in unit tests.

galaxy.objectstore.unittest_utils.app_config(tmpdir) UserObjectStoresAppConfig[source]
class galaxy.objectstore.unittest_utils.Config(config_str='<?xml version="1.0"?>\n<object_store type="disk">\n    <files_dir path="${temp_directory}/files1"/>\n    <extra_dir type="temp" path="${temp_directory}/tmp1"/>\n    <extra_dir type="job_work" path="${temp_directory}/job_working_directory1"/>\n</object_store>\n', clazz=None, store_by='id', user_object_store_resolver: UserObjectStoreResolver | None = None, template_vars=None, inject_galaxy_test_env=False)[source]

Bases: object

__init__(config_str='<?xml version="1.0"?>\n<object_store type="disk">\n    <files_dir path="${temp_directory}/files1"/>\n    <extra_dir type="temp" path="${temp_directory}/tmp1"/>\n    <extra_dir type="job_work" path="${temp_directory}/job_working_directory1"/>\n</object_store>\n', clazz=None, store_by='id', user_object_store_resolver: UserObjectStoreResolver | None = None, template_vars=None, inject_galaxy_test_env=False)[source]
write(contents, name)[source]
class galaxy.objectstore.unittest_utils.MockConfig(temp_directory, config_file, store_by='id')[source]

Bases: object

__init__(temp_directory, config_file, store_by='id')[source]