def test_msgmerge(self): self.assertTrue(MsgmergeAddon.can_install(self.component, None)) addon = MsgmergeAddon.create(self.component) rev = self.component.repository.last_revision addon.post_update(self.component, '') self.assertNotEqual(rev, self.component.repository.last_revision) commit = self.component.repository.show( self.component.repository.last_revision) self.assertIn('po/cs.po', commit)
def test_msgmerge(self): self.assertTrue(MsgmergeAddon.can_install(self.component, None)) addon = MsgmergeAddon.create(self.component) rev = self.component.repository.last_revision addon.post_update(self.component, '') self.assertNotEqual(rev, self.component.repository.last_revision) commit = self.component.repository.show( self.component.repository.last_revision ) self.assertIn('po/cs.po', commit)
def test_msgmerge(self, wrapped=True): self.assertTrue(MsgmergeAddon.can_install(self.component, None)) addon = MsgmergeAddon.create(self.component) rev = self.component.repository.last_revision addon.post_update(self.component, '') self.assertNotEqual(rev, self.component.repository.last_revision) commit = self.component.repository.show( self.component.repository.last_revision) self.assertIn('po/cs.po', commit) self.assertEqual('msgid "Try using Weblate demo' in commit, not wrapped)
def test_msgmerge(self, wrapped=True): self.assertTrue(MsgmergeAddon.can_install(self.component, None)) rev = self.component.repository.last_revision addon = MsgmergeAddon.create(self.component) self.assertNotEqual(rev, self.component.repository.last_revision) rev = self.component.repository.last_revision addon.post_update(self.component, '') self.assertEqual(rev, self.component.repository.last_revision) commit = self.component.repository.show( self.component.repository.last_revision ) self.assertIn('po/cs.po', commit) self.assertEqual( 'msgid "Try using Weblate demo' in commit, not wrapped )