Warning

This document is for an old release 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.model.unittest_utils package

Interface provided by galaxy-data modules for unittest utilities for reuse by other modules.

class galaxy.model.unittest_utils.GalaxyDataTestApp(config: Optional[galaxy.model.unittest_utils.data_app.GalaxyDataTestConfig] = None, **kwd)[source]

Bases: object

Minimal Galaxy mock app object that exposes and uses only what is needed for the galaxy-data package.

__init__(config: Optional[galaxy.model.unittest_utils.data_app.GalaxyDataTestConfig] = None, **kwd)[source]
security: galaxy.security.idencoding.IdEncodingHelper
model: galaxy.model.mapping.GalaxyModelMapping
security_agent: galaxy.model.security.GalaxyRBACAgent
init_datatypes()[source]
class galaxy.model.unittest_utils.GalaxyDataTestConfig(root=None, **kwd)[source]

Bases: galaxy.util.bunch.Bunch

Minimal Galaxy mock config object that exposes and uses only what is needed for the galaxy-data package.

__init__(root=None, **kwd)[source]
root: str
data_dir: str
security: galaxy.security.idencoding.IdEncodingHelper
database_connection: str

Submodules

galaxy.model.unittest_utils.data_app module

Mock GalaxyApp exposing config + functionality required for galaxy-data package.

There is a more expansive MockApp in test/unit/unittest_utils - but it isn’t packaged and it has dependencies from across the app. This mock application and config is more appropriate for testing galaxy-data functionality and will be included with galaxy-data.

class galaxy.model.unittest_utils.data_app.GalaxyDataTestConfig(root=None, **kwd)[source]

Bases: galaxy.util.bunch.Bunch

Minimal Galaxy mock config object that exposes and uses only what is needed for the galaxy-data package.

__init__(root=None, **kwd)[source]
root: str
data_dir: str
security: galaxy.security.idencoding.IdEncodingHelper
database_connection: str
class galaxy.model.unittest_utils.data_app.GalaxyDataTestApp(config: Optional[galaxy.model.unittest_utils.data_app.GalaxyDataTestConfig] = None, **kwd)[source]

Bases: object

Minimal Galaxy mock app object that exposes and uses only what is needed for the galaxy-data package.

__init__(config: Optional[galaxy.model.unittest_utils.data_app.GalaxyDataTestConfig] = None, **kwd)[source]
security: galaxy.security.idencoding.IdEncodingHelper
model: galaxy.model.mapping.GalaxyModelMapping
security_agent: galaxy.model.security.GalaxyRBACAgent
init_datatypes()[source]
class galaxy.model.unittest_utils.data_app.MockSetExternalTool[source]

Bases: object

regenerate_imported_metadata_if_needed(*args, **kwds)[source]