Пример #1
0
 def test_remove_blank(self):
     self.assertTrue(RemoveBlankAddon.can_install(self.component, None))
     rev = self.component.repository.last_revision
     addon = RemoveBlankAddon.create(self.component)
     addon.post_update(self.component,
                       "da07dc0dc7052dc44eadfa8f3a2f2609ec634303", False)
     self.assertNotEqual(rev, self.component.repository.last_revision)
     commit = self.component.repository.show(
         self.component.repository.last_revision)
     self.assertIn("csv-mono/cs.csv", commit)
Пример #2
0
 def test_remove_blank(self):
     self.assertTrue(RemoveBlankAddon.can_install(self.component, None))
     rev = self.component.repository.last_revision
     addon = RemoveBlankAddon.create(self.component)
     self.assertNotEqual(rev, self.component.repository.last_revision)
     rev = self.component.repository.last_revision
     addon.post_update(self.component, "", False)
     self.assertEqual(rev, self.component.repository.last_revision)
     commit = self.component.repository.show(self.component.repository.last_revision)
     self.assertIn("json-mono-sync/cs.json", commit)