summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tests.py')
-rw-r--r--bitbake/lib/toaster/toastergui/tests.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/tests.py b/bitbake/lib/toaster/toastergui/tests.py
index 050861159a..2b5894f743 100644
--- a/bitbake/lib/toaster/toastergui/tests.py
+++ b/bitbake/lib/toaster/toastergui/tests.py
@@ -248,7 +248,13 @@ class ViewTests(TestCase):
248 url = reverse('xhr_customrecipe_id', args=(recipe.id,)) 248 url = reverse('xhr_customrecipe_id', args=(recipe.id,))
249 response = self.client.delete(url) 249 response = self.client.delete(url)
250 self.assertEqual(response.status_code, 200) 250 self.assertEqual(response.status_code, 200)
251 self.assertEqual(json.loads(response.content.decode('utf-8')), {"error": "ok"}) 251
252 gotoUrl = reverse('projectcustomimages', args=(self.project.pk,))
253
254 self.assertEqual(json.loads(response.content.decode('utf-8')),
255 {"error": "ok",
256 "gotoUrl": gotoUrl})
257
252 # try to delete not-existent recipe 258 # try to delete not-existent recipe
253 url = reverse('xhr_customrecipe_id', args=(recipe.id,)) 259 url = reverse('xhr_customrecipe_id', args=(recipe.id,))
254 response = self.client.delete(url) 260 response = self.client.delete(url)