summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-08-10 18:27:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-10 13:58:00 -0700
commit91fea094ab49eea371936c27b2056a58b959f4cf (patch)
tree8bf18abbecac8957314868091f1a36b8da63f567 /bitbake/lib/toaster/toastergui
parent8af82c207d1a1cce4f0d9bc3eb438051dc63909f (diff)
downloadpoky-91fea094ab49eea371936c27b2056a58b959f4cf.tar.gz
bitbake: toaster: get rid of class attributes
LAYER_NAME and RECIPE_NAME attributes don't make sense as they're used only once. (Bitbake rev: 86936224f49810147daa91ea2a050b0e7a82f106) 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/toaster/toastergui')
-rw-r--r--bitbake/lib/toaster/toastergui/tests.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py
index 986e6a5461..9755a882e1 100644
--- a/bitbake/lib/toaster/toastergui/tests.py
+++ b/bitbake/lib/toaster/toastergui/tests.py
@@ -9,8 +9,6 @@ PROJECT_NAME = "test project"
9 9
10class ViewTests(TestCase): 10class ViewTests(TestCase):
11 """Tests to verify view APIs.""" 11 """Tests to verify view APIs."""
12 LAYER_NAME = "base-layer"
13 RECIPE_NAME = "base-recipe"
14 12
15 def setUp(self): 13 def setUp(self):
16 self.bbv = BitbakeVersion.objects.create(\ 14 self.bbv = BitbakeVersion.objects.create(\
@@ -26,14 +24,14 @@ class ViewTests(TestCase):
26 release=self.release, 24 release=self.release,
27 layer_source=self.layersrc) 25 layer_source=self.layersrc)
28 self.layer = Layer.objects.create(\ 26 self.layer = Layer.objects.create(\
29 name=self.LAYER_NAME, 27 name="base-layer",
30 layer_source=self.layersrc, vcs_url="/tmp/") 28 layer_source=self.layersrc, vcs_url="/tmp/")
31 self.lver = Layer_Version.objects.create(\ 29 self.lver = Layer_Version.objects.create(\
32 layer=self.layer, project=self.project, 30 layer=self.layer, project=self.project,
33 layer_source=self.layersrc, commit="master") 31 layer_source=self.layersrc, commit="master")
34 32
35 self.recipe = Recipe.objects.create(\ 33 self.recipe = Recipe.objects.create(\
36 layer_source=self.layersrc, name=self.RECIPE_NAME, 34 layer_source=self.layersrc, name="base-recipe",
37 version="1.2", summary="one recipe", 35 version="1.2", summary="one recipe",
38 description="recipe", layer_version=self.lver) 36 description="recipe", layer_version=self.lver)
39 37