Added sub-path support to MatterMost Notifications

This commit is contained in:
Chris Caron
2019-06-06 12:40:14 -04:00
committed by GitHub
parent f373e41a91
commit 3b28823b23
2 changed files with 46 additions and 20 deletions

View File

@ -999,6 +999,13 @@ TEST_URLS = (
('mmosts://localhost/3ccdd113474722377935511fc85d3dd4', {
'instance': plugins.NotifyMatterMost,
}),
# Test our paths
('mmosts://localhost/a/path/3ccdd113474722377935511fc85d3dd4', {
'instance': plugins.NotifyMatterMost,
}),
('mmosts://localhost/////3ccdd113474722377935511fc85d3dd4///', {
'instance': plugins.NotifyMatterMost,
}),
('mmosts://localhost', {
# Thrown because there was no webhook id specified
'instance': TypeError,