Allow more than 1 bash build in tests

It is perfectly valid to have more than one build of a package, eg. one
in the release repo and one in the updates repo.

(cherry picked from commit 86c4ef5f45)
This commit is contained in:
Brian C. Lane 2018-06-21 16:09:07 -07:00
parent 089f0309fa
commit ba8e478eed

View File

@ -473,7 +473,7 @@ class ServerTestCase(unittest.TestCase):
data = json.loads(resp.data) data = json.loads(resp.data)
self.assertNotEqual(data, None) self.assertNotEqual(data, None)
projects = data.get("projects") projects = data.get("projects")
self.assertEqual(len(projects), 1) self.assertEqual(len(projects) > 0, True)
self.assertEqual(projects[0]["name"], "bash") self.assertEqual(projects[0]["name"], "bash")
self.assertEqual(projects[0]["builds"][0]["source"]["license"], "GPLv3+") self.assertEqual(projects[0]["builds"][0]["source"]["license"], "GPLv3+")
@ -645,7 +645,7 @@ class ServerTestCase(unittest.TestCase):
data = json.loads(resp.data) data = json.loads(resp.data)
self.assertNotEqual(data, None) self.assertNotEqual(data, None)
modules = data.get("modules") modules = data.get("modules")
self.assertEqual(len(modules), 1) self.assertEqual(len(modules) > 0, True)
self.assertEqual(modules[0]["name"], "bash") self.assertEqual(modules[0]["name"], "bash")
self.assertEqual(modules[0]["dependencies"][0]["name"], "basesystem") self.assertEqual(modules[0]["dependencies"][0]["name"], "basesystem")