From ff6b3cc600a9ec7e332deefafd8b64b0c875ab26 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Sun, 27 Aug 2023 13:19:36 -0400 Subject: [PATCH] reporting improved when an instantiation test fails --- test/helpers/rest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/helpers/rest.py b/test/helpers/rest.py index b4bf853e..9dbe2c8e 100644 --- a/test/helpers/rest.py +++ b/test/helpers/rest.py @@ -187,12 +187,12 @@ class AppriseURLTester: if instance is None: # Expected None but didn't get it print('%s instantiated %s (but expected None)' % ( - url, str(obj))) + url, type(obj))) assert False if not isinstance(obj, instance): print('%s instantiated %s (but expected %s)' % ( - url, type(instance), str(obj))) + url, type(instance), type(obj))) assert False if isinstance(obj, NotifyBase):