コード例 #1
0
ファイル: tests.py プロジェクト: supersaiyanslayin420/weblate
 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)
コード例 #2
0
ファイル: tests.py プロジェクト: DevenLu/weblate
 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)