diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-08-10 18:27:10 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-10 13:58:00 -0700 |
commit | 2f8c8e4c31aaf36bc5e11cf7847866c025e1c5c1 (patch) | |
tree | b5bef2201a1119d3115e986ff99e7f42f3672195 /bitbake/lib | |
parent | 13e04177da493e6878b6444d8aeaf246de2d9b45 (diff) | |
download | poky-2f8c8e4c31aaf36bc5e11cf7847866c025e1c5c1.tar.gz |
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/toaster/toastergui/tests.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py index a9edd546fc..6f3930db93 100644 --- a/bitbake/lib/toaster/toastergui/tests.py +++ b/bitbake/lib/toaster/toastergui/tests.py | |||
@@ -7,7 +7,7 @@ import json | |||
7 | 7 | ||
8 | PROJECT_NAME = "test project" | 8 | PROJECT_NAME = "test project" |
9 | 9 | ||
10 | class ProvisionedProjectTestCase(TestCase): | 10 | class AllProjectsViewTestCase(TestCase): |
11 | 11 | ||
12 | def setUp(self): | 12 | def setUp(self): |
13 | self.bbv = BitbakeVersion.objects.create(\ | 13 | self.bbv = BitbakeVersion.objects.create(\ |
@@ -18,9 +18,6 @@ class ProvisionedProjectTestCase(TestCase): | |||
18 | self.project = Project.objects.create_project(name=PROJECT_NAME, | 18 | self.project = Project.objects.create_project(name=PROJECT_NAME, |
19 | release=self.release) | 19 | release=self.release) |
20 | 20 | ||
21 | |||
22 | class AllProjectsViewTestCase(ProvisionedProjectTestCase): | ||
23 | |||
24 | def test_get_base_call_returns_html(self): | 21 | def test_get_base_call_returns_html(self): |
25 | response = self.client.get(reverse('all-projects'), follow=True) | 22 | response = self.client.get(reverse('all-projects'), follow=True) |
26 | self.assertEqual(response.status_code, 200) | 23 | self.assertEqual(response.status_code, 200) |