def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self['system.is_freenas'] = Mock(return_value=True) self.__schemas = Schemas() self.call_hook = CoroutineMock() self.call_hook_inline = Mock()
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self['failover.licensed'] = Mock(return_value=False) self['system.is_freenas'] = Mock(return_value=True) self.__schemas = Schemas() self.call_hook = CoroutineMock() self.call_hook_inline = Mock() self.event_register = Mock() self.send_event = Mock() self.logger = logging.getLogger("middlewared")
def __init__(self, overlay_dirs=None): self.overlay_dirs = overlay_dirs or [] self._schemas = Schemas() self._services = {} self._services_aliases = {}
def __init__(self): self._schemas = Schemas()
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self['system.is_freenas'] = Mock(return_value=True) self.__schemas = Schemas()