mirror of
https://github.com/caronc/apprise.git
synced 2025-08-10 00:38:02 +02:00
Apprise and AppriseConfig truth value support added (#155)
This commit is contained in:
@ -68,6 +68,10 @@ def test_apprise():
|
||||
# no items
|
||||
assert(len(a) == 0)
|
||||
|
||||
# Apprise object can also be directly tested with 'if' keyword
|
||||
# No entries results in a False response
|
||||
assert(not a)
|
||||
|
||||
# Create an Asset object
|
||||
asset = AppriseAsset(theme='default')
|
||||
|
||||
@ -85,6 +89,10 @@ def test_apprise():
|
||||
# 2 servers loaded
|
||||
assert(len(a) == 2)
|
||||
|
||||
# Apprise object can also be directly tested with 'if' keyword
|
||||
# At least one entry results in a True response
|
||||
assert(a)
|
||||
|
||||
# We can retrieve our URLs this way:
|
||||
assert(len(a.urls()) == 2)
|
||||
|
||||
|
Reference in New Issue
Block a user