mirror of
https://github.com/caronc/apprise.git
synced 2025-08-14 02:18:37 +02:00
CI: Enable testing on macOS and Windows (#707)
This commit is contained in:
@ -32,12 +32,16 @@ import socket
|
||||
|
||||
# Disable logging for a cleaner testing output
|
||||
import logging
|
||||
|
||||
from apprise.plugins.NotifySyslog import NotifySyslog
|
||||
|
||||
logging.disable(logging.CRITICAL)
|
||||
|
||||
|
||||
# The `syslog` module is not available on Windows.
|
||||
# `ModuleNotFoundError: No module named 'syslog'`
|
||||
NotifySyslog = pytest.importorskip(
|
||||
"apprise.plugins.NotifySyslog",
|
||||
reason="`syslog` module not available on Windows").NotifySyslog
|
||||
|
||||
|
||||
@mock.patch('syslog.syslog')
|
||||
@mock.patch('syslog.openlog')
|
||||
def test_plugin_syslog_by_url(openlog, syslog):
|
||||
|
Reference in New Issue
Block a user