bitbake: toaster: get rid of AllProjectsViewTestCase

Removed AllProjectsViewTestCase class as it had one method 'setUp'
and used as a parent for another class AllProjectsViewTestCase.

Moved setUp method to AllProjectsViewTestCase.

(Bitbake rev: b68e4d994eb825c1039fd90d197724b77aeebd5d)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh
2015-08-10 18:27:10 +01:00
committed by Richard Purdie
parent 13e04177da
commit 2f8c8e4c31

View File

@@ -7,7 +7,7 @@ import json
PROJECT_NAME = "test project"
class ProvisionedProjectTestCase(TestCase):
class AllProjectsViewTestCase(TestCase):
def setUp(self):
self.bbv = BitbakeVersion.objects.create(\
@@ -18,9 +18,6 @@ class ProvisionedProjectTestCase(TestCase):
self.project = Project.objects.create_project(name=PROJECT_NAME,
release=self.release)
class AllProjectsViewTestCase(ProvisionedProjectTestCase):
def test_get_base_call_returns_html(self):
response = self.client.get(reverse('all-projects'), follow=True)
self.assertEqual(response.status_code, 200)