From 1ef326e2206a860837abbc0c0c7e99b15b10d538 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 5 Feb 2021 09:29:56 +0530 Subject: [PATCH] Better error message --- kitty_tests/graphics.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty_tests/graphics.py b/kitty_tests/graphics.py index 0e1095342..014debc4d 100644 --- a/kitty_tests/graphics.py +++ b/kitty_tests/graphics.py @@ -111,6 +111,7 @@ def load_helpers(self): cid = kw.setdefault('i', 1) self.ae('OK', pl(payload, **kw)) img = g.image_for_client_id(cid) + self.assertIsNotNone(img, f'No image with id {cid} found') self.ae(img['client_id'], cid) self.ae(img['data'], data) if 's' in kw: