mirror of https://github.com/caronc/apprise
flake8 InvocationError's resolved (#238)
parent
28f416093d
commit
b318c4d208
|
@ -161,7 +161,7 @@ class NotifyBase(URLBase):
|
||||||
# Store the specified format if specified
|
# Store the specified format if specified
|
||||||
notify_format = kwargs.get('format', '')
|
notify_format = kwargs.get('format', '')
|
||||||
if notify_format.lower() not in NOTIFY_FORMATS:
|
if notify_format.lower() not in NOTIFY_FORMATS:
|
||||||
msg = 'Invalid notification format %s'.format(notify_format)
|
msg = 'Invalid notification format {}'.format(notify_format)
|
||||||
self.logger.error(msg)
|
self.logger.error(msg)
|
||||||
raise TypeError(msg)
|
raise TypeError(msg)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ license_file = LICENSE
|
||||||
[flake8]
|
[flake8]
|
||||||
# We exclude packages we don't maintain
|
# We exclude packages we don't maintain
|
||||||
exclude = .eggs,.tox,gntp
|
exclude = .eggs,.tox,gntp
|
||||||
ignore = E722,W503,W504,W605
|
ignore = E741,E722,W503,W504,W605
|
||||||
statistics = true
|
statistics = true
|
||||||
builtins = _
|
builtins = _
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,6 @@ def test_office365_general(mock_post):
|
||||||
obj = Apprise.instantiate(
|
obj = Apprise.instantiate(
|
||||||
'o365://{tenant}:{email}/{tenant}/{secret}/{targets}'.format(
|
'o365://{tenant}:{email}/{tenant}/{secret}/{targets}'.format(
|
||||||
tenant=tenant,
|
tenant=tenant,
|
||||||
client_id=client_id,
|
|
||||||
email=email,
|
email=email,
|
||||||
secret=secret,
|
secret=secret,
|
||||||
targets=targets))
|
targets=targets))
|
||||||
|
|
|
@ -3201,7 +3201,7 @@ TEST_URLS = (
|
||||||
# Expected notify() response
|
# Expected notify() response
|
||||||
'notify_response': False,
|
'notify_response': False,
|
||||||
}),
|
}),
|
||||||
('spush://salt:pass@{}'.format('X' * 14, 'A' * 16), {
|
('spush://salt:pass@{}'.format('X' * 14), {
|
||||||
# Now we'll test encrypted messages with new salt
|
# Now we'll test encrypted messages with new salt
|
||||||
'instance': plugins.NotifySimplePush,
|
'instance': plugins.NotifySimplePush,
|
||||||
# Set our response to OK
|
# Set our response to OK
|
||||||
|
|
Loading…
Reference in New Issue