tests: add test on add notification endpoint (#60643)

This commit is contained in:
Nicolas Roche 2022-01-18 13:01:06 +01:00 committed by Frédéric Péters
parent d54a69c423
commit 93d54bf08f
1 changed files with 1 additions and 0 deletions

View File

@ -273,6 +273,7 @@ def test_notification_id_and_origin(john_doe):
result = notify({'summary': 'foo', 'id': '1'})
assert result['err'] == 1
assert 'id must match regular expression' in result['err_desc']['id'][0]
notification = Notification.notify(john_doe, 'foo')