mirror of
https://github.com/vale981/releases
synced 2025-03-06 02:01:41 -05:00
Finish first impl case, update tests...still failing though :D
This commit is contained in:
parent
2ca6190539
commit
4fdfd15a5e
2 changed files with 15 additions and 8 deletions
|
@ -189,9 +189,17 @@ def construct_releases(entries, app):
|
|||
missing = [i for i in explicit if i not in issues]
|
||||
if missing:
|
||||
raise ValueError("Couldn't find issue(s) #%s in the changelog!" % (', '.join(i)))
|
||||
# Obtain objects from global list, using attributes to
|
||||
# determine which buckets they should be removed from:
|
||||
for obj in [issues[i] for i in explicit]:
|
||||
# Obtain objects from global list
|
||||
entries = [issues[i] for i in explicit]
|
||||
# Create release
|
||||
log("entries in this release: %r" % (entries,))
|
||||
releases.append({
|
||||
'obj': focus,
|
||||
'entries': entries,
|
||||
})
|
||||
# Introspect entries to determine which buckets they should get
|
||||
# removed from
|
||||
for obj in entries:
|
||||
if obj.type == 'bug':
|
||||
# Major bugfix: remove from unreleased_minor
|
||||
if obj.major:
|
||||
|
@ -221,7 +229,6 @@ def construct_releases(entries, app):
|
|||
for x in lines['unreleased_minor']
|
||||
if x.type in ('feature', 'support') or x.major
|
||||
]
|
||||
log("entries in this release: %r" % (entries,))
|
||||
releases.append({
|
||||
'obj': focus,
|
||||
'entries': entries
|
||||
|
|
|
@ -182,13 +182,13 @@ class releases(Spec):
|
|||
one_0_1 = rendered[3]['entries']
|
||||
one_1_1 = rendered[2]['entries']
|
||||
assert self.b not in one_0_1
|
||||
assert self.b2 in one_0_1
|
||||
assert self.b3 in one_0_1
|
||||
assert b2 in one_0_1
|
||||
assert b3 in one_0_1
|
||||
# 1.1.1 includes all 3 (i.e. the explicitness of 1.0.1 didn't affect
|
||||
# the 1.1 line bucket.)
|
||||
assert self.b in one_1_1
|
||||
assert self.b2 in one_1_1
|
||||
assert self.b3 in one_1_1
|
||||
assert b2 in one_1_1
|
||||
assert b3 in one_1_1
|
||||
|
||||
def explicit_minor_releases_dont_clear_entire_unreleased_minor(self):
|
||||
f1 = _issue('feature', '1')
|
||||
|
|
Loading…
Add table
Reference in a new issue