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