tests: add test on add notification endpoint (#60643)
This commit is contained in:
parent
d54a69c423
commit
93d54bf08f
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue