def get_config_schema(self): schema = config.ConfigSchema(self.ext_name) schema['enabled'] = config.Boolean() schema['pusherport'] = config.String() schema['country'] = config.String() schema['locale'] = config.String() return schema
def get_config_schema(self): schema = config.ConfigSchema(self.ext_name) schema['enabled'] = config.Boolean() schema['country'] = config.String() schema['locale'] = config.String() schema['authorization_url'] = config.String() return schema
def get_config_schema(self): """The extension's config validation schema :returns: :class:`~mopidy.config.schema.ExtensionConfigSchema` """ schema = config_lib.ConfigSchema(self.ext_name) schema['enabled'] = config_lib.Boolean() return schema
def get_config_schema(self): schema = config.ConfigSchema(self.ext_name) schema["enabled"] = config.Boolean() schema["country"] = config.String() schema["locale"] = config.String() schema["spotify_authorization_url"] = config.String() schema["lastfm_authorization_url"] = config.String() schema["genius_authorization_url"] = config.String() schema["data_dir"] = config.String() # Deprecated return schema
def get_config_schema(self): schema = config.ConfigSchema(self.ext_name) schema['enabled'] = config.Boolean() schema['country'] = config.String() schema['locale'] = config.String() schema['spotify_authorization_url'] = config.String() schema['lastfm_authorization_url'] = config.String() schema['genius_authorization_url'] = config.String() schema['data_dir'] = config.String() return schema
def get_config_schema(self): schema = config.ConfigSchema(self.ext_name) schema['enabled'] = config.Boolean() schema['country'] = config.String() schema['locale'] = config.String() schema['spotify_authorization_url'] = config.String() schema['lastfm_authorization_url'] = config.String() schema['snapcast_enabled'] = config.Boolean() schema['snapcast_host'] = config.String() schema['snapcast_port'] = config.Integer() return schema
def get_config_schema(self): schema = config.ConfigSchema(self.ext_name) schema["enabled"] = config.Boolean() schema["country"] = config.String() schema["locale"] = config.String() schema["verify_certificates"] = config.Boolean() schema["snapcast_enabled"] = config.Boolean() schema["snapcast_host"] = config.String() schema["snapcast_port"] = config.String() schema["snapcast_ssl"] = config.Boolean() schema["snapcast_stream"] = config.String() schema["spotify_authorization_url"] = config.String() schema["lastfm_authorization_url"] = config.String() schema["genius_authorization_url"] = config.String() schema["data_dir"] = config.String() # Deprecated return schema
def setUp(self): # noqa: N802 self.schema = config.ConfigSchema('foo') self.schema['bar'] = config.ConfigValue()