diff options
Diffstat (limited to 'bitbake/lib/toaster/orm')
-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 | ||