def test_github_tag_newer(self): self.gh_mock() with patch('dscan.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('wordpress/wordpress/', self.versions_file, update_majors=self.update_majors)
def test_github_tag_newer(self): self.gh_mock() with patch('dscan.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("joomla/joomla-cms/", self.versions_file, update_majors=self.update_majors)
def update_version_check(self): """ @return: True if new versions of this software have been found. """ return ua.github_tags_newer('moodle/moodle/', self.versions_file, update_majors=self.update_majors)