Example #1
0
def test_info(galaxy_context):
    ret = info.info_repository_specs(galaxy_context,
                                     # mock api
                                     mock.Mock(),
                                     ['namespace.repo.content'],
                                     display_callback=display_callback,
                                     offline=True)

    log.debug('ret: %s', ret)
Example #2
0
def test_info_empty(galaxy_context):
    ret = info.info_repository_specs(galaxy_context,
                                     # mock api
                                     mock.Mock(),
                                     [],
                                     display_callback=display_callback,
                                     offline=True)

    log.debug('ret: %s', ret)
Example #3
0
    def execute_info(self):
        """
        Display detailed information about an installed collection, as well as info available from the Galaxy API.
        """

        if len(self.args) == 0:
            # the user needs to specify a collection
            raise cli_exceptions.CliOptionsError("- you must specify a collection name")

        log.debug('args=%s', self.args)

        galaxy_context = self._get_galaxy_context(self.options, self.config)

        repository_spec_strings = self.args

        api = rest_api.GalaxyAPI(galaxy_context)

        # FIXME: rc?
        return info.info_repository_specs(galaxy_context, api, repository_spec_strings,
                                          display_callback=self.display,
                                          offline=self.options.offline)