Example #1
0
 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)
Example #2
0
 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)