Fix Zulip 401 when botname contains a dash (#581)

This commit is contained in:
Clemens Wolff
2022-05-02 12:30:12 -04:00
committed by GitHub
parent fd0cb3ffcc
commit af2919fbb5
3 changed files with 18 additions and 3 deletions

View File

@ -55,6 +55,11 @@ apprise_url_tests = (
('zulip://....@apprise/{}'.format('a' * 32), {
'instance': TypeError,
}),
# Valid everything - botname with a dash
('zulip://bot-name@apprise/{}'.format('a' * 32), {
'instance': plugins.NotifyZulip,
'privacy_url': 'zulip://bot-name@apprise/a...a/',
}),
# Valid everything - no target so default is used
('zulip://botname@apprise/{}'.format('a' * 32), {
'instance': plugins.NotifyZulip,