aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-10-11 21:51:28 +0200
committerLorenz Diener <[email protected]>2019-10-11 21:51:28 +0200
commit30eb63261ca5964222f5a2c5f03d6bd537fac987 (patch)
tree9bc3b796f91c6b3cdabfa1ca386cb2d4b8213469 /tests/test_notifications.py
parentec58bd4de87c727d6fd8c71cc8f0d1bb312feae1 (diff)
downloadmastodon.py-30eb63261ca5964222f5a2c5f03d6bd537fac987.tar.gz
Implement new notification dismiss behaviour, add test for old behaviour
Diffstat (limited to 'tests/test_notifications.py')
-rw-r--r--tests/test_notifications.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_notifications.py b/tests/test_notifications.py
index 87c898a..3032519 100644
--- a/tests/test_notifications.py
+++ b/tests/test_notifications.py
@@ -1,4 +1,5 @@
1import pytest 1import pytest
2import vcr
2 3
3@pytest.fixture() 4@pytest.fixture()
4def mention(api2): 5def mention(api2):
@@ -14,7 +15,12 @@ def test_notifications(api, mention):
14@pytest.mark.vcr() 15@pytest.mark.vcr()
15def test_notifications_dismiss(api, mention): 16def test_notifications_dismiss(api, mention):
16 notifications = api.notifications() 17 notifications = api.notifications()
17 api.notifications_dismiss(notifications[0]) 18 api.notifications_dismiss(notifications[0]) # TODO possibly verify that this returns a notif dict
19
20def test_notifications_dismiss_pre_2_9_2(api, mention):
21 with vcr.use_cassette('test_notifications_dismiss.yaml', cassette_library_dir='tests/cassettes_pre_2_9_2', record_mode='none'):
22 notifications = api.notifications()
23 api.notifications_dismiss(notifications[0])
18 24
19@pytest.mark.vcr() 25@pytest.mark.vcr()
20def test_notifications_clear(api): 26def test_notifications_clear(api):
Powered by cgit v1.2.3 (git 2.41.0)