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'])
Exemple #2
0
 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)
Exemple #3
0
 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'])
Exemple #4
0
 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)
Exemple #5
0
 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(self._repo_framework, self.versions_file,
             update_majors=self._update_majors)