[Toaster] [PATCH 4/9] toaster: get rid of AllProjectsViewTestCase
Ed Bartosh
ed.bartosh at linux.intel.com
Thu Aug 6 03:15:10 PDT 2015
Removed AllProjectsViewTestCase class as it had one method 'setUp'
and used as a parent for another class AllProjectsViewTestCase.
Moved setUp method to AllProjectsViewTestCase.
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
bitbake/lib/toaster/toastergui/tests.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py
index d4aacb3..bba6f37 100644
--- a/bitbake/lib/toaster/toastergui/tests.py
+++ b/bitbake/lib/toaster/toastergui/tests.py
@@ -6,7 +6,7 @@ from orm.models import Layer, Layer_Version
PROJECT_NAME = "test project"
-class ProvisionedProjectTestCase(TestCase):
+class AllProjectsViewTestCase(TestCase):
def setUp(self):
self.bbv = BitbakeVersion.objects.create(\
@@ -17,9 +17,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)
--
2.1.4
More information about the toaster
mailing list