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 | |
parent | 3ba3cf22d612637583978f3b32e80cfa29161aa7 (diff) | |
download | poky-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')
-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): | |||
90 | 90 | ||
91 | self.assertTrue(PROJECT_NAME in [x["name"] for x in data["rows"]]) | 91 | self.assertTrue(PROJECT_NAME in [x["name"] for x in data["rows"]]) |
92 | self.assertTrue("id" in data["rows"][0]) | 92 | self.assertTrue("id" in data["rows"][0]) |
93 | self.assertTrue("projectLayersUrl" in data["rows"][0]) | 93 | |
94 | self.assertTrue("projectPageUrl" in data["rows"][0]) | 94 | self.assertEqual(sorted(data["rows"][0]), |
95 | self.assertTrue("projectBuildsUrl" in data["rows"][0]) | 95 | ['bitbake_version_id', 'created', 'id', |
96 | 'layersTypeAheadUrl', 'name', 'projectBuildsUrl', | ||
97 | 'projectPageUrl', 'recipesTypeAheadUrl', | ||
98 | 'release_id', 'short_description', 'updated', | ||
99 | 'user_id']) | ||
96 | 100 | ||
97 | def test_typeaheads(self): | 101 | def test_typeaheads(self): |
98 | """Test typeahead ReST API""" | 102 | """Test typeahead ReST API""" |