def test_auto(self): self.assertTrue(AutoTranslateAddon.can_install(self.component, None)) addon = AutoTranslateAddon.create( self.component, configuration={ "component": "", "filter_type": "todo", "auto_source": "mt", "engines": [], "threshold": 80, "mode": "translate", }, ) addon.component_update(self.component)
def test_auto(self): self.assertTrue(AutoTranslateAddon.can_install(self.component, None)) addon = AutoTranslateAddon.create( self.component, configuration={ 'component': '', 'filter_type': 'todo', 'auto_source': 'mt', 'engines': [], 'threshold': 80, 'mode': 'translate', }, ) addon.component_update(self.component)