def test_example_pre(self): self.assertTrue(ExamplePreAddon.can_install(self.component, None)) translation = self.get_translation() addon = ExamplePreAddon.create(self.component) addon.pre_commit(translation, '') self.assertIn( os.path.join(self.component.full_path, 'po/{}.po'.format(translation.language_code)), translation.addon_commit_files)
def test_example_pre(self): self.assertTrue(ExamplePreAddon.can_install(self.component, None)) translation = self.get_translation() addon = ExamplePreAddon.create(self.component) addon.pre_commit(translation, '') self.assertIn( os.path.join( self.component.full_path, 'po/{}.po'.format(translation.language_code) ), translation.addon_commit_files )