aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_notifications.py')
-rw-r--r--tests/test_notifications.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/test_notifications.py b/tests/test_notifications.py
index 3032519..ab9ac31 100644
--- a/tests/test_notifications.py
+++ b/tests/test_notifications.py
@@ -17,10 +17,16 @@ def test_notifications_dismiss(api, mention):
17 notifications = api.notifications() 17 notifications = api.notifications()
18 api.notifications_dismiss(notifications[0]) # TODO possibly verify that this returns a notif dict 18 api.notifications_dismiss(notifications[0]) # TODO possibly verify that this returns a notif dict
19 19
20def test_notifications_dismiss_pre_2_9_2(api, mention): 20def test_notifications_dismiss_pre_2_9_2(api, api2):
21 with vcr.use_cassette('test_notifications_dismiss.yaml', cassette_library_dir='tests/cassettes_pre_2_9_2', record_mode='none'): 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() 22 status = None
23 api.notifications_dismiss(notifications[0]) 23 try:
24 status = api2.status_post('@mastodonpy_test hello!')
25 notifications = api.notifications()
26 api.notifications_dismiss(notifications[0])
27 finally:
28 if not status is None:
29 api2.status_delete(status)
24 30
25@pytest.mark.vcr() 31@pytest.mark.vcr()
26def test_notifications_clear(api): 32def test_notifications_clear(api):
Powered by cgit v1.2.3 (git 2.41.0)