Browse Source

reporting improved when an instantiation test fails

pull/939/head
Chris Caron 1 year ago
parent
commit
ff6b3cc600
  1. 4
      test/helpers/rest.py

4
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):

Loading…
Cancel
Save