def test_getTemplateValue(self):
     """
     Expecting a VERSION number
     """
     url = "https://wiki.mozilla.org/Template:BETA_VERSION"
     beta_version = getTemplateValue(url)
     assert type(int(beta_version)) is not type(int)
Ejemplo n.º 2
0
 def test_1_getTemplateValue(self):
     """
     Tests for getTemplateValue,
     Expecting a VERSION number
     """
     url = "https://wiki.mozilla.org/Template:BETA_VERSION"
     beta_version = getTemplateValue(url)
     assert type(int(beta_version)) is not type(int)
Ejemplo n.º 3
0
    def test_2_getReportURL(self):
        """
        Tests for getReportURL
        Expecting proper URL with Bug numbers
        """
        url = 'https://wiki.mozilla.org/Template:CURRENT_CYCLE'
        cycle_span = getTemplateValue(url)
        unlanded_beta_url = getReportURL("approval-mozilla-beta", cycle_span)
        unlanded_esr_url = getReportURL("approval-mozilla-esr" + esr_version,
                                        cycle_span)

        url = unlanded_beta_url.split('=')
        assert isinstance(int(url[1].split(',')[0]), (int))
        url = unlanded_esr_url.split('=')
        assert isinstance(int(url[1].split(',')[0]), (int))
    def test_getReportURL(self):
        """
        Expecting proper URL with Bug numbers
        """
        url = 'https://wiki.mozilla.org/Template:CURRENT_CYCLE'
        cycle_span = getTemplateValue(url)
        unlanded_beta_url = getReportURL("approval-mozilla-beta",
                                         cycle_span)
        unlanded_aurora_url = getReportURL("approval-mozilla-aurora",
                                           cycle_span)
        unlanded_esr38_url = getReportURL("approval-mozilla-esr38",
                                          cycle_span)

        unlanded_beta_url = unlanded_beta_url.split('=')
        assert ',' in unlanded_beta_url[1]
        unlanded_aurora_url = unlanded_aurora_url.split('=')
        assert ',' in unlanded_aurora_url[1]
        unlanded_esr38_url = unlanded_esr38_url.split('=')
        assert ',' in unlanded_esr38_url[1]
Ejemplo n.º 5
0
    def test_2_getReportURL(self):
        """
        Tests for getReportURL
        Expecting proper URL with Bug numbers
        """
        url = 'https://wiki.mozilla.org/Template:CURRENT_CYCLE'
        cycle_span = getTemplateValue(url)
        unlanded_beta_url = getReportURL("approval-mozilla-beta",
                                         cycle_span)
        unlanded_aurora_url = getReportURL("approval-mozilla-aurora",
                                           cycle_span)
        unlanded_esr38_url = getReportURL("approval-mozilla-esr38",
                                          cycle_span)

        url = unlanded_beta_url.split('=')
        assert isinstance(int(url[1].split(',')[0]), (int))
        url = unlanded_aurora_url.split('=')
        assert isinstance(int(url[1].split(',')[0]), (int))
        url = unlanded_esr38_url.split('=')
        assert isinstance(int(url[1].split(',')[0]), (int))