mirror of
https://github.com/caronc/apprise.git
synced 2025-08-16 19:42:25 +02:00
Refactor Test Code for Efficiency and Quality (#1100)
This commit is contained in:
@ -163,8 +163,8 @@ def test_plugin_msg91_keywords(mock_post):
|
||||
obj = Apprise.instantiate(
|
||||
'msg91://{}@{}/{}?:key=value&:mobiles=ignored'
|
||||
.format(template, authkey, target))
|
||||
assert isinstance(obj, NotifyMSG91) is True
|
||||
assert isinstance(obj.url(), str) is True
|
||||
assert isinstance(obj, NotifyMSG91)
|
||||
assert isinstance(obj.url(), str)
|
||||
|
||||
# Send Notification
|
||||
assert obj.send(body=message_contents) is True
|
||||
@ -192,8 +192,8 @@ def test_plugin_msg91_keywords(mock_post):
|
||||
# Play with mapping
|
||||
obj = Apprise.instantiate(
|
||||
'msg91://{}@{}/{}?:body&:type=cat'.format(template, authkey, target))
|
||||
assert isinstance(obj, NotifyMSG91) is True
|
||||
assert isinstance(obj.url(), str) is True
|
||||
assert isinstance(obj, NotifyMSG91)
|
||||
assert isinstance(obj.url(), str)
|
||||
|
||||
# Send Notification
|
||||
assert obj.send(body=message_contents) is True
|
||||
|
Reference in New Issue
Block a user