Custom form:// application/x-www-form-urlencoded Support (#512)

This commit is contained in:
Chris Caron
2022-01-04 11:30:16 -05:00
committed by GitHub
parent 45db560475
commit ca7465299d
8 changed files with 832 additions and 22 deletions

View File

@@ -44,6 +44,9 @@ apprise_url_tests = (
('json://localhost', {
'instance': plugins.NotifyJSON,
}),
('json://user@localhost?method=invalid', {
'instance': TypeError,
}),
('json://user:pass@localhost', {
'instance': plugins.NotifyJSON,
@@ -53,6 +56,25 @@ apprise_url_tests = (
('json://user@localhost', {
'instance': plugins.NotifyJSON,
}),
# Test method variations
('json://user@localhost?method=put', {
'instance': plugins.NotifyJSON,
}),
('json://user@localhost?method=get', {
'instance': plugins.NotifyJSON,
}),
('json://user@localhost?method=post', {
'instance': plugins.NotifyJSON,
}),
('json://user@localhost?method=head', {
'instance': plugins.NotifyJSON,
}),
('json://user@localhost?method=delete', {
'instance': plugins.NotifyJSON,
}),
# Continue testing other cases
('json://localhost:8080', {
'instance': plugins.NotifyJSON,
}),