]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: Fix broken test case
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 1 Oct 2015 09:41:26 +0000 (10:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Oct 2015 13:37:50 +0000 (14:37 +0100)
Fixed test_show_tasks_in_projectbuilds broken by latest changes in
project build view.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/toastergui/tests.py

index 5d15ac9478ff21c0dc25a0cc67ba6f0b0f12bda4..95790a2bb82065388d01cfd5f199b43e4ef28545 100644 (file)
@@ -564,7 +564,7 @@ class ProjectBuildsDisplayTest(TestCase):
         url = reverse("projectbuilds", args=(self.project1.id,))
         response = self.client.get(url, follow=True)
         result = re.findall('^ +bash:clean$', response.content, re.MULTILINE)
-        self.assertEqual(len(result), 1)
+        self.assertEqual(len(result), 2)
 
     def test_show_tasks_in_allbuilds(self):
         build = Build.objects.create(**self.project1_build_success)