summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-08-10 18:27:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-10 13:57:59 -0700
commit9e3c0ee1c533bd941cfa6d75d6c0b4e2992547d5 (patch)
tree22b6e5cd65b308db70d7350580bda161f589d7e7 /bitbake
parent0b80ef5f8a4b7261bf991b60d891235a6db7aae1 (diff)
downloadpoky-9e3c0ee1c533bd941cfa6d75d6c0b4e2992547d5.tar.gz
bitbake: toaster: fix test_get_json_call_returns_json test
This test case used wrong field name. Fixed by renaming field 'lists' -> 'rows'. (Bitbake rev: 534a302a413319d2573c894b1c1077ac0578bbb1) 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')
-rw-r--r--bitbake/lib/toaster/toastergui/tests.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py
index 8a59af46ef..39586e0d24 100644
--- a/bitbake/lib/toaster/toastergui/tests.py
+++ b/bitbake/lib/toaster/toastergui/tests.py
@@ -34,13 +34,13 @@ class AllProjectsViewTestCase(ProvisionedProjectTestCase):
34 34
35 self.assertTrue("error" in data) 35 self.assertTrue("error" in data)
36 self.assertEqual(data["error"], "ok") 36 self.assertEqual(data["error"], "ok")
37 self.assertTrue("list" in data) 37 self.assertTrue("rows" in data)
38 38
39 self.assertTrue(AllProjectsViewTestCase.TEST_PROJECT_NAME in map(lambda x: x["name"], data["list"])) 39 self.assertTrue(AllProjectsViewTestCase.TEST_PROJECT_NAME in map(lambda x: x["name"], data["rows"]))
40 self.assertTrue("id" in data["list"][0]) 40 self.assertTrue("id" in data["rows"][0])
41 self.assertTrue("projectLayersUrl" in data["list"][0]) 41 self.assertTrue("projectLayersUrl" in data["rows"][0])
42 self.assertTrue("projectPageUrl" in data["list"][0]) 42 self.assertTrue("projectPageUrl" in data["rows"][0])
43 self.assertTrue("projectBuildsUrl" in data["list"][0]) 43 self.assertTrue("projectBuildsUrl" in data["rows"][0])
44 44
45class ProvisionedLayersProjectTestCase(ProvisionedProjectTestCase): 45class ProvisionedLayersProjectTestCase(ProvisionedProjectTestCase):
46 LAYER_NAME = "base-layer" 46 LAYER_NAME = "base-layer"