Exemplo n.º 1
0
 def test_store(self):
     GettextCustomizeAddon.create(self.component, configuration={"width": -1})
     rev = self.component.repository.last_revision
     self.edit_unit("Hello, world!\n", "Nazdar svete!\n")
     self.get_translation().commit_pending("test", None)
     self.assertNotEqual(rev, self.component.repository.last_revision)
     commit = self.component.repository.show(self.component.repository.last_revision)
     self.assertIn(
         "Last-Translator: Weblate Test <*****@*****.**>\\nLanguage", commit
     )
Exemplo n.º 2
0
 def test_store(self):
     if not GettextCustomizeAddon.can_install(self.component, None):
         raise SkipTest('po wrap configuration not supported')
     GettextCustomizeAddon.create(self.component, configuration={'width': -1})
     rev = self.component.repository.last_revision
     self.edit_unit('Hello, world!\n', 'Nazdar svete!\n')
     self.get_translation().commit_pending('test', None)
     self.assertNotEqual(rev, self.component.repository.last_revision)
     commit = self.component.repository.show(self.component.repository.last_revision)
     self.assertIn(
         'Last-Translator: Weblate Test <*****@*****.**>\\nLanguage', commit
     )
Exemplo n.º 3
0
 def test_store(self):
     if not GettextCustomizeAddon.is_compatible(self.subproject):
         raise SkipTest('po wrap configuration not supported')
     GettextCustomizeAddon.create(
         self.subproject,
         configuration={'width': -1}
     )
     # Empty addons cache
     self.subproject.addons_cache = {}
     rev = self.subproject.repository.last_revision
     self.edit_unit('Hello, world!\n', 'Nazdar svete!\n')
     self.get_translation().commit_pending(None)
     self.assertNotEqual(rev, self.subproject.repository.last_revision)
     commit = self.subproject.repository.show(
         self.subproject.repository.last_revision
     )
     self.assertIn(
         'Last-Translator: Weblate Test <*****@*****.**>\\nLanguage',
         commit
     )
Exemplo n.º 4
0
 def test_store(self):
     if not GettextCustomizeAddon.can_install(self.component, None):
         raise SkipTest('po wrap configuration not supported')
     GettextCustomizeAddon.create(
         self.component,
         configuration={'width': -1}
     )
     # Empty addons cache
     self.component.addons_cache = {}
     rev = self.component.repository.last_revision
     self.edit_unit('Hello, world!\n', 'Nazdar svete!\n')
     self.get_translation().commit_pending('test', None)
     self.assertNotEqual(rev, self.component.repository.last_revision)
     commit = self.component.repository.show(
         self.component.repository.last_revision
     )
     self.assertIn(
         'Last-Translator: Weblate Test <*****@*****.**>\\nLanguage',
         commit
     )
Exemplo n.º 5
0
 def test_msgmerge_nowrap(self):
     GettextCustomizeAddon.create(self.component,
                                  configuration={"width": -1})
     self.test_msgmerge(False)
Exemplo n.º 6
0
 def test_msgmerge_nowrap(self):
     GettextCustomizeAddon.create(
         self.component,
         configuration={'width': -1}
     )
     self.test_msgmerge(False)