summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/tests.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-07-21 14:43:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-26 08:10:36 +0100
commitbb260e94a63d6d498c9c76b862bc836a90678495 (patch)
tree9fe719213c79a999e5d5eb7e4c28da926c56db6f /bitbake/lib/toaster/toastergui/tests.py
parentef627d0ab8f5cf2fc72005393e76047cb623ff3d (diff)
downloadpoky-bb260e94a63d6d498c9c76b862bc836a90678495.tar.gz
bitbake: toaster: tests: Remove references to LayerSource model
Remove and replace layersource model references in the tests and test data. Remove the orm/test as this only tested LayerSource interactions which have now been removed. (Bitbake rev: 61a47cbc92c856690cb0e8da7102b2e669eaee0a) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tests.py')
-rw-r--r--bitbake/lib/toaster/toastergui/tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py
index da530a10e5..03b73a9d69 100644
--- a/bitbake/lib/toaster/toastergui/tests.py
+++ b/bitbake/lib/toaster/toastergui/tests.py
@@ -28,7 +28,7 @@ from django.utils import timezone
28from django.db.models import Q 28from django.db.models import Q
29 29
30from orm.models import Project, Release, BitbakeVersion, Package, LogMessage 30from orm.models import Project, Release, BitbakeVersion, Package, LogMessage
31from orm.models import ReleaseLayerSourcePriority, LayerSource, Layer, Build 31from orm.models import LayerSource, Layer, Build
32from orm.models import Layer_Version, Recipe, Machine, ProjectLayer, Target 32from orm.models import Layer_Version, Recipe, Machine, ProjectLayer, Target
33from orm.models import CustomImageRecipe, ProjectVariable 33from orm.models import CustomImageRecipe, ProjectVariable
34from orm.models import Branch, CustomImagePackage 34from orm.models import Branch, CustomImagePackage
@@ -149,7 +149,6 @@ class ViewTests(TestCase):
149 149
150 def test_xhr_import_layer(self): 150 def test_xhr_import_layer(self):
151 """Test xhr_importlayer API""" 151 """Test xhr_importlayer API"""
152 LayerSource.objects.create(sourcetype=LayerSource.TYPE_IMPORTED)
153 #Test for importing an already existing layer 152 #Test for importing an already existing layer
154 args = {'vcs_url' : "git://git.example.com/test", 153 args = {'vcs_url' : "git://git.example.com/test",
155 'name' : "base-layer", 154 'name' : "base-layer",