decorator to reamin backwards compatible even after rework in #1368

pull/1382/head
Chris Caron 2025-08-02 11:52:33 -04:00
parent 6a21495a09
commit 14037897d8
2 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ class CustomNotifyPlugin(NotifyBase):
result = self.__send( result = self.__send(
body, body,
title, title,
notify_type, notify_type.value,
*args, *args,
meta=self._default_args, meta=self._default_args,
**kwargs, **kwargs,

View File

@ -2008,7 +2008,7 @@ def test_apprise_cli_plugin_loading(mock_post, tmpdir):
@notify(on="clihook") @notify(on="clihook")
def mywrapper(body, title, notify_type, *args, **kwargs): def mywrapper(body, title, notify_type, *args, **kwargs):
# A simple test - print to screen # A simple test - print to screen
print("{}: {} - {}".format(notify_type.value, title, body)) print("{}: {} - {}".format(notify_type, title, body))
# No return (so a return of None) get's translated to True # No return (so a return of None) get's translated to True
@ -2016,7 +2016,7 @@ def test_apprise_cli_plugin_loading(mock_post, tmpdir):
@notify(on="clihookA") @notify(on="clihookA")
def mywrapper(body, title, notify_type, *args, **kwargs): def mywrapper(body, title, notify_type, *args, **kwargs):
# A simple test - print to screen # A simple test - print to screen
print("!! {}: {} - {}".format(notify_type.value, title, body)) print("!! {}: {} - {}".format(notify_type, title, body))
# No return (so a return of None) get's translated to True # No return (so a return of None) get's translated to True
""")) """))