From 86c4ef5f45645dd70d3fdec56a8c52c3258beafa Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 21 Jun 2018 16:09:07 -0700 Subject: [PATCH] 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. --- tests/pylorax/test_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pylorax/test_server.py b/tests/pylorax/test_server.py index 269e4503..44c2c8f4 100644 --- a/tests/pylorax/test_server.py +++ b/tests/pylorax/test_server.py @@ -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")