Example #1
0
 def test_needs_update_to_lower_version(self):
     from editolido.core import needs_update, infos_from_giturl
     loc = infos_from_giturl(
         'https://github.com/flyingeek/editolido/archive/1.0.0b7.zip')
     rem = infos_from_giturl(
         'https://github.com/flyingeek/editolido/archive/1.0.0b6.zip')
     self.assertFalse(needs_update(loc, rem))
Example #2
0
 def test_needs_update_to_same_version_another_owner(self):
     from editolido.core import needs_update, infos_from_giturl
     loc = infos_from_giturl(
         'https://github.com/flyingeek/editolido/archive/1.0.0b7.zip')
     rem = infos_from_giturl(
         'https://github.com/eric/editolido/archive/1.0.0b7.zip')
     self.assertTrue(needs_update(loc, rem))
Example #3
0
 def test_needs_update_to_other_branch(self):
     from editolido.core import needs_update, infos_from_giturl
     loc = infos_from_giturl(
         'https://github.com/flyingeek/editolido/archive/master.zip')
     rem = infos_from_giturl(
         'https://github.com/flyingeek/editolido/archive/another.zip')
     self.assertTrue(needs_update(loc, rem))
Example #4
0
 def test_needs_update_to_lower_version(self):
     from editolido.core import needs_update, infos_from_giturl
     loc = infos_from_giturl(
         'https://github.com/flyingeek/editolido/archive/1.0.0b7.zip')
     rem = infos_from_giturl(
         'https://github.com/flyingeek/editolido/archive/1.0.0b6.zip')
     self.assertFalse(needs_update(loc, rem))
Example #5
0
 def test_needs_update_to_same_version_another_owner(self):
     from editolido.core import needs_update, infos_from_giturl
     loc = infos_from_giturl(
         'https://github.com/flyingeek/editolido/archive/1.0.0b7.zip')
     rem = infos_from_giturl(
         'https://github.com/eric/editolido/archive/1.0.0b7.zip')
     self.assertTrue(needs_update(loc, rem))
Example #6
0
 def test_needs_update_to_other_branch(self):
     from editolido.core import needs_update, infos_from_giturl
     loc = infos_from_giturl(
         'https://github.com/flyingeek/editolido/archive/master.zip')
     rem = infos_from_giturl(
         'https://github.com/flyingeek/editolido/archive/another.zip')
     self.assertTrue(needs_update(loc, rem))