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:
parent
a5ddd5e3bf
commit
841e65a397
@ -473,7 +473,7 @@ class ServerTestCase(unittest.TestCase):
|
||||
data = json.loads(resp.data)
|
||||
self.assertNotEqual(data, None)
|
||||
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]["builds"][0]["source"]["license"], "GPLv3+")
|
||||
|
||||
@ -645,7 +645,7 @@ class ServerTestCase(unittest.TestCase):
|
||||
data = json.loads(resp.data)
|
||||
self.assertNotEqual(data, None)
|
||||
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]["dependencies"][0]["name"], "basesystem")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user