Do not create new batch for included module if it is not requested by its buildorder.

This commit is contained in:
Jan Kaluza
2017-03-28 09:32:14 +02:00
parent ba19f28878
commit f66de75272
3 changed files with 15 additions and 9 deletions

View File

@@ -24,6 +24,9 @@ data:
rationale: It's here to test the whole thing!
ref: 70fa7516b83768595a4f3280ae890a7ac957e0c7
buildorder: 10
ed:
rationale: ed
ref: 123
modules:
fakemodule:
rationale: foobar

View File

@@ -486,7 +486,7 @@ class TestViews(unittest.TestCase):
data = json.loads(rv.data)
assert 'component_builds' in data, data
self.assertEquals(data['component_builds'], [61, 62, 63, 64])
self.assertEquals(data['component_builds'], [61, 62, 63, 64, 65])
self.assertEquals(data['name'], 'includedmodules')
self.assertEquals(data['scmurl'],
('git://pkgs.stg.fedoraproject.org/modules/testmodule'
@@ -505,6 +505,7 @@ class TestViews(unittest.TestCase):
for build in ComponentBuild.query.filter_by(module_id=31).all():
batches[build.package] = build.batch
self.assertEquals(batches['ed'], 2)
self.assertEquals(batches['perl-List-Compare'], 2)
self.assertEquals(batches['perl-Tangerine'], 2)
self.assertEquals(batches['tangerine'], 3)