CI: Enable testing on macOS and Windows (#707)

This commit is contained in:
Andreas Motl
2022-10-30 13:31:57 -07:00
committed by GitHub
parent 4fc4b8e95f
commit cddd5c4fb3
14 changed files with 150 additions and 58 deletions

View File

@ -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):