From: Ed Bartosh Date: Thu, 1 Oct 2015 09:41:26 +0000 (+0100) Subject: toaster: Fix broken test case X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c72c7634ab69a5eb18aa20a5c6d16a3e2666f62;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: Fix broken test case Fixed test_show_tasks_in_projectbuilds broken by latest changes in project build view. Signed-off-by: Ed Bartosh Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- diff --git a/lib/toaster/toastergui/tests.py b/lib/toaster/toastergui/tests.py index 5d15ac9478f..95790a2bb82 100644 --- a/lib/toaster/toastergui/tests.py +++ b/lib/toaster/toastergui/tests.py @@ -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)