diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-08-10 18:27:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-10 13:58:02 -0700 |
commit | 27a483dcb32c87ca8b3b1ec36cc0cb30af26de45 (patch) | |
tree | c1fab2e4887a0ad5906e16e983384796fd60ab85 /bitbake/lib/toaster/toastergui/tests.py | |
parent | 3ba3cf22d612637583978f3b32e80cfa29161aa7 (diff) | |
download | openembedded-core-contrib-27a483dcb32c87ca8b3b1ec36cc0cb30af26de45.tar.gz |
bitbake: toaster: fix test_get_json_call_returns_json again
Fixed this test case again after rebase. Improved it
to check for all returned keys. Previously it was checking
only 3 of them.
(Bitbake rev: 2deef2e86a09b6cb907bfeff56774f889cfe30a1)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood@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 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py index 723348dd57..d15584955d 100644 --- a/bitbake/lib/toaster/toastergui/tests.py +++ b/bitbake/lib/toaster/toastergui/tests.py @@ -90,9 +90,13 @@ class ViewTests(TestCase): self.assertTrue(PROJECT_NAME in [x["name"] for x in data["rows"]]) self.assertTrue("id" in data["rows"][0]) - self.assertTrue("projectLayersUrl" in data["rows"][0]) - self.assertTrue("projectPageUrl" in data["rows"][0]) - self.assertTrue("projectBuildsUrl" in data["rows"][0]) + + self.assertEqual(sorted(data["rows"][0]), + ['bitbake_version_id', 'created', 'id', + 'layersTypeAheadUrl', 'name', 'projectBuildsUrl', + 'projectPageUrl', 'recipesTypeAheadUrl', + 'release_id', 'short_description', 'updated', + 'user_id']) def test_typeaheads(self): """Test typeahead ReST API""" |