def test_github_tag_newer(self): self.gh_mock() with patch('common.update_api.VersionsFile') as vf: vf().highest_version_major.return_value = {'6': '6.34', '7': '7.33'} assert github_tags_newer('drupal/drupal/', 'not_a_real_file.xml', ['6', '7']) vf().highest_version_major.return_value = {'6': '6.34', '7': '7.34'} assert not github_tags_newer('drupal/drupal/', 'not_a_real_file.xml', ['6', '7']) vf().highest_version_major.return_value = {'6': '6.33', '7': '7.34'} assert github_tags_newer('drupal/drupal/', 'not_a_real_file.xml', ['6', '7'])
def update_version_check(self): """ @return True if new tags have been made in the github repository. """ return ua.github_tags_newer(self._repo_framework, self.versions_file, update_majors=self._update_majors)
def update_version_check(self): """ @return True if new tags have been made in the github repository. """ return ua.github_tags_newer('drupal/drupal/', self.versions_file, update_majors=['6', '7'])
def update_version_check(self): """ @return: True if new tags have been made in the github repository. """ return ua.github_tags_newer('joomla/joomla-cms/', self.versions_file, update_majors=self.update_majors)