8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc95a2c commit 64d219dCopy full SHA for 64d219d
tests/unit/test_notifications.py
@@ -26,6 +26,23 @@ def test_repr(self):
26
self.instance.subject.get('title'))
27
28
def test_delete_description(self):
29
+ """Show that a user can delete a subscription"""
30
self.instance.delete_subscription()
31
32
self.session.delete.assert_called_once_with(url_for('subscription'))
33
+
34
+ def test_mark(self):
35
+ """Show that a user can mark the subscription"""
36
+ self.instance.mark()
37
38
+ assert self.session.patch.called
39
40
+ def test_set_subscription(self):
41
+ """Show that a user can subscribe to nofication"""
42
43
+ self.instance.set_subscription(True, False)
44
45
+ self.session.put.assert_called_once_with(
46
+ url_for('subscription'),
47
+ data='{"ignored": false, "subscribed": true}'
48
+ )
0 commit comments