Example #1
0
 def test_sort(self):
     self.edit_unit("Hello, world!\n", "Nazdar svete!\n")
     self.assertTrue(PropertiesSortAddon.can_install(self.component, None))
     PropertiesSortAddon.create(self.component)
     self.get_translation().commit_pending("test", None)
     commit = self.component.repository.show(self.component.repository.last_revision)
     self.assertIn("java/swing_messages_cs.properties", commit)
Example #2
0
 def test_sort(self):
     self.edit_unit('Hello, world!\n', 'Nazdar svete!\n')
     self.assertTrue(PropertiesSortAddon.is_compatible(self.subproject))
     PropertiesSortAddon.create(self.subproject)
     self.get_translation().commit_pending(None)
     commit = self.subproject.repository.show(
         self.subproject.repository.last_revision)
     self.assertIn('java/swing_messages_cs.properties', commit)
Example #3
0
 def test_sort(self):
     self.edit_unit('Hello, world!\n', 'Nazdar svete!\n')
     self.assertTrue(PropertiesSortAddon.can_install(self.component, None))
     PropertiesSortAddon.create(self.component)
     self.get_translation().commit_pending('test', None)
     commit = self.component.repository.show(
         self.component.repository.last_revision
     )
     self.assertIn('java/swing_messages_cs.properties', commit)