Esempio n. 1
0
 def no_unreleased(self):
     release, issues = release_and_issues(
         changelog={'1.1': [], '1.1.0': [1, 2]},
         branch='1.1',
         release_type=Release.BUGFIX,
     )
     eq_(release, '1.1.0')
     eq_(issues, [])
Esempio n. 2
0
 def no_unreleased(self):
     # release is None, issues is empty list
     release, issues = release_and_issues(
         changelog={'1.0.1': [1], 'unreleased_1_feature': []},
         branch='master',
         release_type=Release.FEATURE,
     )
     eq_(release, None)
     eq_(issues, [])
Esempio n. 3
0
 def no_unreleased(self):
     release, issues = release_and_issues(
         changelog={
             '1.1': [],
             '1.1.0': [1, 2]
         },
         branch='1.1',
         release_type=Release.BUGFIX,
     )
     eq_(release, '1.1.0')
     eq_(issues, [])
Esempio n. 4
0
 def has_unreleased(self):
     # release is still None, issues is nonempty list
     release, issues = release_and_issues(
         changelog={
             '1.0.1': [1],
             'unreleased_1_feature': [2, 3]
         },
         branch='master',
         release_type=Release.FEATURE,
     )
     eq_(release, None)
     eq_(issues, [2, 3])