ModuleNotFoundError exception on sys.exit() bugfix (#417)

This commit is contained in:
Chris Caron
2021-08-08 12:09:59 -04:00
committed by GitHub
parent 0b26d1c884
commit bca44c02a5
4 changed files with 144 additions and 21 deletions

View File

@ -1858,6 +1858,18 @@ TEST_URLS = (
# despite uppercase characters
'instance': plugins.NotifyMatrix,
}),
('matrix://user@localhost?mode=SLACK&format=markdown&token=mytoken', {
# user and token specified; slack webhook still detected
# despite uppercase characters; token also set on URL as arg
'instance': plugins.NotifyMatrix,
}),
('matrix://_?mode=t2bot&token={}'.format('b' * 64), {
# Testing t2bot initialization and setting the password using the
# token directive
'instance': plugins.NotifyMatrix,
# Our expected url(privacy=True) startswith() response:
'privacy_url': 'matrix://b...b/',
}),
# Image Reference
('matrixs://user:token@localhost?mode=slack&format=markdown&image=True', {
# user and token specified; image set to True