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))
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))
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))
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))
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))
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))