diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-08-10 12:21:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-17 14:41:44 +0100 |
commit | e5956a6b850f75e65a76180fc7a568553072d36d (patch) | |
tree | ec16d86b336441153d0476ee3a400e46ebce34f7 /bitbake/lib | |
parent | 5638321f036d4d7b61e85e3de8e8d451c5954990 (diff) | |
download | poky-e5956a6b850f75e65a76180fc7a568553072d36d.tar.gz |
bitbake: toaster: remove ProjectLVSelectionTestCase
Moved code from ProjectLVSelectionTestCase.test_single_layersource to
LayerVersionEquivalenceTestCase.test_compatible_layerversions.
Removed ProjectLVSelectionTestCase.
(Bitbake rev: b322cb6f5fec0b979a646605ed0d7646764c07a7)
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/orm/tests.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bitbake/lib/toaster/orm/tests.py b/bitbake/lib/toaster/orm/tests.py index 99f4fa0df8..5246909ae5 100644 --- a/bitbake/lib/toaster/orm/tests.py +++ b/bitbake/lib/toaster/orm/tests.py | |||
@@ -118,8 +118,9 @@ class LayerVersionEquivalenceTestCase(TestCase): | |||
118 | # create spoof layer that should not appear in the search results | 118 | # create spoof layer that should not appear in the search results |
119 | layer = Layer.objects.create(name="meta-notvalid", | 119 | layer = Layer.objects.create(name="meta-notvalid", |
120 | layer_source=self.lsrc) | 120 | layer_source=self.lsrc) |
121 | Layer_Version.objects.create(layer=layer, layer_source=self.lsrc, | 121 | self.lver2 = Layer_Version.objects.create(layer=layer, |
122 | up_branch=self.branch) | 122 | layer_source=self.lsrc, |
123 | up_branch=self.branch) | ||
123 | 124 | ||
124 | def test_single_layersource(self): | 125 | def test_single_layersource(self): |
125 | """ | 126 | """ |
@@ -179,12 +180,11 @@ class LayerVersionEquivalenceTestCase(TestCase): | |||
179 | 180 | ||
180 | self.assertEqual(list(equivqs), list(bequivqs)) | 181 | self.assertEqual(list(equivqs), list(bequivqs)) |
181 | 182 | ||
182 | class ProjectLVSelectionTestCase(TestCase): | 183 | def test_compatible_layerversions(self): |
183 | 184 | """ | |
184 | def setUp(self): | 185 | When we have a 2 layer versions, compatible_layerversions() |
185 | setup_lv_tests(self) | 186 | should return a queryset with both. |
186 | 187 | """ | |
187 | def test_single_layersource(self): | ||
188 | compat_lv = self.project.compatible_layerversions() | 188 | compat_lv = self.project.compatible_layerversions() |
189 | self.assertEqual(list(compat_lv), [self.lver]) | 189 | self.assertEqual(list(compat_lv), [self.lver, self.lver2]) |
190 | 190 | ||