mirror of
https://github.com/caronc/apprise.git
synced 2024-11-21 23:53:23 +01:00
inline documentation typos/cleanup
This commit is contained in:
parent
154839e791
commit
9f2f42f715
@ -48,7 +48,7 @@ try:
|
|||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# No problem; we just simply can't support this plugin because we're
|
# No problem; we just simply can't support this plugin because we're
|
||||||
# either using Linux, or simply do not have pypiwin32 installed.
|
# either using Linux, or simply do not have pywin32 installed.
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@ -146,7 +146,8 @@ class NotifyWindows(NotifyBase):
|
|||||||
|
|
||||||
if not self._enabled:
|
if not self._enabled:
|
||||||
self.logger.warning(
|
self.logger.warning(
|
||||||
"Windows Notifications are not supported by this system.")
|
"Windows Notifications are not supported by this system; "
|
||||||
|
"`pip install pywin32`.")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Always call throttle before any remote server i/o is made
|
# Always call throttle before any remote server i/o is made
|
||||||
|
@ -64,7 +64,7 @@ def test_xmpp_plugin_import_error(tmpdir):
|
|||||||
|
|
||||||
# So we create a temporary directory called sleekxmpp (simulating the
|
# So we create a temporary directory called sleekxmpp (simulating the
|
||||||
# library itself) and writing an __init__.py in it that does nothing
|
# library itself) and writing an __init__.py in it that does nothing
|
||||||
# but throw an ImportError exception (simulating that hte library
|
# but throw an ImportError exception (simulating that the library
|
||||||
# isn't found).
|
# isn't found).
|
||||||
suite = tmpdir.mkdir("sleekxmpp")
|
suite = tmpdir.mkdir("sleekxmpp")
|
||||||
suite.join("__init__.py").write('')
|
suite.join("__init__.py").write('')
|
||||||
@ -101,7 +101,7 @@ def test_xmpp_plugin_import_error(tmpdir):
|
|||||||
reload(sys.modules['apprise'])
|
reload(sys.modules['apprise'])
|
||||||
|
|
||||||
# This tests that Apprise still works without sleekxmpp.
|
# This tests that Apprise still works without sleekxmpp.
|
||||||
# XMPP objects can't be istantiated though.
|
# XMPP objects can still be instantiated in these cases.
|
||||||
obj = apprise.Apprise.instantiate('xmpp://user:pass@localhost')
|
obj = apprise.Apprise.instantiate('xmpp://user:pass@localhost')
|
||||||
assert obj is not None
|
assert obj is not None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user