mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-13 13:40:06 +08:00
Do not create new batch for included module if it is not requested by its buildorder.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user