Exemple #1
0
 def test_workrave_without_known_name(self):
     """
     Test workrave changelog with confluence syntax and no headings
     """
     self.assertEqual(
         convert_base_after(
             convert_confluence(convert_base(workrave, 'workrave'))),
         workrave_expected)
Exemple #2
0
 def test_pdftk(self):
     """
     Test pdftk changelog
     Encloses the [version] in brackets and has two levels with headings (which we ignore for now).
     """
     self.assertEqual(
         convert_base_after(convert_markdown(convert_base(pdftk, 'pdftk'))),
         pdftk_expected)
Exemple #3
0
 def test_isort(self):
     """
     Test isort changelog
     Let's ignore the whitespace before the - list specifiers
     """
     self.assertEqual(
         convert_base_after(convert_markdown(convert_base(isort, 'isort'))),
         isort_expected)
Exemple #4
0
 def test_dateutil(self):
     """
     Test dateutil changelog
     Uses first level headings for the versions.
     """
     self.assertEqual(
         convert_base_after(
             convert_markdown(convert_base(dateutil, 'dateutil'))),
         dateutil_expected)
Exemple #5
0
 def test_diffoscope(self):
     self.assertEqual(
         convert_base_after(convert_debian(convert_base(diffoscope))),
         diffoscope_expected)
Exemple #6
0
 def test_geoip2(self):
     self.assertEqual(
         convert_base_after(convert_rst(convert_base(geoip2)), '4.2.0'),
         geoip2_expected)
Exemple #7
0
 def test_time_machine(self):
     self.assertEqual(
         convert_base_after(
             convert_rst(convert_base(time_machine, 'time-machine')),
             '2.1.0'), time_machine_expected)
Exemple #8
0
 def test_xarray(self):
     self.assertEqual(
         convert_base_after(
             convert_rst(convert_base(xarray_original, 'xarray')),
             '0.12.0'), xarray_expected)
 def test_conversion(self):
     self.assertEqual(
         convert_base_after(
             convert_markdown(convert_base(shodan_original, 'shodan')),
             '1.13.0'), shodan_expected)