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.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[GalaxyDataTestConfig] = None, **kwd)[source]¶
Bases:
object
Minimal Galaxy mock app object that exposes and uses only what is needed for the galaxy-data package.
- file_sources: ConfiguredFileSources = <galaxy.files.NullConfiguredFileSources object>¶
- __init__(config: Optional[GalaxyDataTestConfig] = None, **kwd)[source]¶
- security: IdEncodingHelper¶
- model: GalaxyModelMapping¶
- security_agent: GalaxyRBACAgent¶
- class galaxy.model.unittest_utils.GalaxyDataTestConfig(root=None, **kwd)[source]¶
Bases:
Bunch
Minimal Galaxy mock config object that exposes and uses only what is needed for the galaxy-data package.
- security: IdEncodingHelper¶
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:
Bunch
Minimal Galaxy mock config object that exposes and uses only what is needed for the galaxy-data package.
- security: IdEncodingHelper¶
- class galaxy.model.unittest_utils.data_app.GalaxyDataTestApp(config: Optional[GalaxyDataTestConfig] = None, **kwd)[source]¶
Bases:
object
Minimal Galaxy mock app object that exposes and uses only what is needed for the galaxy-data package.
- file_sources: ConfiguredFileSources = <galaxy.files.NullConfiguredFileSources object>¶
- __init__(config: Optional[GalaxyDataTestConfig] = None, **kwd)[source]¶
- security: IdEncodingHelper¶
- model: GalaxyModelMapping¶
- security_agent: GalaxyRBACAgent¶
galaxy.model.unittest_utils.store_fixtures module¶
Fixtures for populating model stores.
- galaxy.model.unittest_utils.store_fixtures.now()¶
Return a new datetime representing UTC day and time.