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] Signed-off-by: Elliot Smith <[email protected]> --- bitbake/lib/toaster/toastergui/tests.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py index 85e27fe..7acf4bc 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""" -- Elliot Smith Software Engineer Intel OTC --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
