Load Dynamic Libraries and Emoji Engine on Demand (#1020)

This commit is contained in:
Chris Caron
2023-12-27 14:23:13 -05:00
committed by GitHub
parent 34a26da4f4
commit 9dcf769397
35 changed files with 1943 additions and 1064 deletions

View File

@ -43,7 +43,7 @@ logging.disable(logging.CRITICAL)
if sys.platform not in ["darwin", "linux"]:
pytest.skip("Only makes sense on macOS, but also works on Linux",
pytest.skip("Only makes sense on macOS, but testable in Linux",
allow_module_level=True)
@ -56,8 +56,7 @@ def pretend_macos(mocker):
mocker.patch("platform.mac_ver", return_value=('10.8', ('', '', ''), ''))
# Reload plugin module, in order to re-run module-level code.
current_module = sys.modules[__name__]
reload_plugin("NotifyMacOSX", replace_in=current_module)
reload_plugin("NotifyMacOSX")
@pytest.fixture
@ -93,6 +92,7 @@ def test_plugin_macosx_general_success(macos_notify_environment):
NotifyMacOSX() general checks
"""
# Toggle Enable Flag
obj = apprise.Apprise.instantiate(
'macosx://_/?image=True', suppress_exceptions=False)
assert isinstance(obj, NotifyMacOSX) is True