mirror of
https://github.com/caronc/apprise.git
synced 2025-08-10 08:47:53 +02:00
Improved Apprise encoding and text format support (#566)
This commit is contained in:
@ -250,6 +250,11 @@ def apprise_test(do_notify):
|
||||
assert do_notify(a, title='', body=None) is False
|
||||
assert do_notify(a, title=None, body='') is False
|
||||
|
||||
assert do_notify(a, title=5, body=b'bytes') is False
|
||||
assert do_notify(a, title=b"bytes", body=10) is False
|
||||
assert do_notify(a, title=object(), body=b'bytes') is False
|
||||
assert do_notify(a, title=b"bytes", body=object()) is False
|
||||
|
||||
# As long as one is present, we're good
|
||||
assert do_notify(a, title=None, body='present') is True
|
||||
assert do_notify(a, title='present', body=None) is True
|
||||
|
Reference in New Issue
Block a user