diff options
author | Elliot Smith <elliot.smith@intel.com> | 2015-09-02 17:25:11 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-03 16:52:50 +0100 |
commit | 3b6d193cd7dc508d3285664b78b426fc5fd6e4a5 (patch) | |
tree | 29d5cdb5715b4e3d7390e7df9a8e2cccb3b8bcea | |
parent | 3b233fca49b4fe3db6e883b2ca7f5a2ee741c4ac (diff) | |
download | openembedded-core-contrib-3b6d193cd7dc508d3285664b78b426fc5fd6e4a5.tar.gz |
bitbake: toaster: Fix test for projects page JSON
The tests expect data to be returned in a particular format,
which doesn't include is_default or the num_builds fields
added to support default project improvements.
Add the extra fields so the tests pass again.
[YOCTO #7932]
(Bitbake rev: 66f965b68dda76a755d88879191a0f340ba19142)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/toaster/toastergui/tests.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py index 85e27fe07c..7acf4bc31d 100644 --- a/bitbake/lib/toaster/toastergui/tests.py +++ b/bitbake/lib/toaster/toastergui/tests.py @@ -40,6 +40,7 @@ class ViewTests(TestCase): bitbake_version=bbv) self.project = Project.objects.create_project(name=PROJECT_NAME, release=release) + layersrc = LayerSource.objects.create(sourcetype=LayerSource.TYPE_IMPORTED) self.priority = ReleaseLayerSourcePriority.objects.create(release=release, layer_source=layersrc) @@ -86,10 +87,10 @@ class ViewTests(TestCase): self.assertEqual(sorted(data["rows"][0]), ['bitbake_version_id', 'created', 'id', - 'layersTypeAheadUrl', 'name', 'projectBuildsUrl', - 'projectPageUrl', 'recipesTypeAheadUrl', - 'release_id', 'short_description', 'updated', - 'user_id']) + 'is_default', 'layersTypeAheadUrl', 'name', + 'num_builds', 'projectBuildsUrl', 'projectPageUrl', + 'recipesTypeAheadUrl', 'release_id', + 'short_description', 'updated', 'user_id']) def test_typeaheads(self): """Test typeahead ReST API""" |