reporting improved when an instantiation test fails

pull/939/head
Chris Caron 1 year ago
parent c41e7e6374
commit ff6b3cc600

@ -187,12 +187,12 @@ class AppriseURLTester:
if instance is None: if instance is None:
# Expected None but didn't get it # Expected None but didn't get it
print('%s instantiated %s (but expected None)' % ( print('%s instantiated %s (but expected None)' % (
url, str(obj))) url, type(obj)))
assert False assert False
if not isinstance(obj, instance): if not isinstance(obj, instance):
print('%s instantiated %s (but expected %s)' % ( print('%s instantiated %s (but expected %s)' % (
url, type(instance), str(obj))) url, type(instance), type(obj)))
assert False assert False
if isinstance(obj, NotifyBase): if isinstance(obj, NotifyBase):

Loading…
Cancel
Save