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.
This commit is contained in:
parent
59847db275
commit
86c4ef5f45
@ -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")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user