mirror of
https://github.com/caronc/apprise.git
synced 2025-08-10 08:47:53 +02:00
Added Discord Support; refs #4
This commit is contained in:
@ -20,6 +20,7 @@ from apprise.plugins.NotifyBase import NotifyBase
|
||||
from apprise import NotifyType
|
||||
from apprise import NotifyImageSize
|
||||
from timeit import default_timer
|
||||
from apprise.utils import compat_is_basestring
|
||||
|
||||
|
||||
def test_notify_base():
|
||||
@ -75,6 +76,15 @@ def test_notify_base():
|
||||
assert nb.image_path(notify_type=NotifyType.INFO) is None
|
||||
assert nb.image_raw(notify_type=NotifyType.INFO) is None
|
||||
|
||||
# Color handling
|
||||
assert nb.color(notify_type='invalid') is None
|
||||
assert compat_is_basestring(
|
||||
nb.color(notify_type=NotifyType.INFO, color_type=None))
|
||||
assert isinstance(
|
||||
nb.color(notify_type=NotifyType.INFO, color_type=int), int)
|
||||
assert isinstance(
|
||||
nb.color(notify_type=NotifyType.INFO, color_type=tuple), tuple)
|
||||
|
||||
# Create an object with an ImageSize loaded into it
|
||||
nb = NotifyBase(image_size=NotifyImageSize.XY_256)
|
||||
|
||||
|
Reference in New Issue
Block a user