mirror of
https://github.com/caronc/apprise.git
synced 2025-08-09 16:35:07 +02:00
Support -open arg with terminal-notifier (macosx://) (#789)
This commit is contained in:
@ -126,6 +126,15 @@ def test_plugin_macosx_general_success(macos_notify_environment):
|
||||
assert obj.notify(title='title', body='body',
|
||||
notify_type=apprise.NotifyType.INFO) is True
|
||||
|
||||
# Test Click (-open support)
|
||||
obj = apprise.Apprise.instantiate(
|
||||
'macosx://_/?click=http://google.com', suppress_exceptions=False)
|
||||
assert isinstance(obj, NotifyMacOSX) is True
|
||||
assert obj.click == 'http://google.com'
|
||||
assert isinstance(obj.url(), str) is True
|
||||
assert obj.notify(title='title', body='body',
|
||||
notify_type=apprise.NotifyType.INFO) is True
|
||||
|
||||
|
||||
def test_plugin_macosx_terminal_notifier_not_executable(
|
||||
pretend_macos, terminal_notifier):
|
||||
|
Reference in New Issue
Block a user