diff options
| author | Michael Wood <michael.g.wood@intel.com> | 2016-07-21 14:43:28 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-26 08:10:36 +0100 |
| commit | bb260e94a63d6d498c9c76b862bc836a90678495 (patch) | |
| tree | 9fe719213c79a999e5d5eb7e4c28da926c56db6f /bitbake/lib/toaster/toastergui/tests.py | |
| parent | ef627d0ab8f5cf2fc72005393e76047cb623ff3d (diff) | |
| download | poky-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.py | 3 |
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 | |||
| 28 | from django.db.models import Q | 28 | from django.db.models import Q |
| 29 | 29 | ||
| 30 | from orm.models import Project, Release, BitbakeVersion, Package, LogMessage | 30 | from orm.models import Project, Release, BitbakeVersion, Package, LogMessage |
| 31 | from orm.models import ReleaseLayerSourcePriority, LayerSource, Layer, Build | 31 | from orm.models import LayerSource, Layer, Build |
| 32 | from orm.models import Layer_Version, Recipe, Machine, ProjectLayer, Target | 32 | from orm.models import Layer_Version, Recipe, Machine, ProjectLayer, Target |
| 33 | from orm.models import CustomImageRecipe, ProjectVariable | 33 | from orm.models import CustomImageRecipe, ProjectVariable |
| 34 | from orm.models import Branch, CustomImagePackage | 34 | from 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", |
