From 30eb63261ca5964222f5a2c5f03d6bd537fac987 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Fri, 11 Oct 2019 21:51:28 +0200 Subject: Implement new notification dismiss behaviour, add test for old behaviour --- tests/test_notifications.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/test_notifications.py') 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 @@ import pytest +import vcr @pytest.fixture() def mention(api2): @@ -14,7 +15,12 @@ def test_notifications(api, mention): @pytest.mark.vcr() def test_notifications_dismiss(api, mention): notifications = api.notifications() - api.notifications_dismiss(notifications[0]) + api.notifications_dismiss(notifications[0]) # TODO possibly verify that this returns a notif dict + +def test_notifications_dismiss_pre_2_9_2(api, mention): + with vcr.use_cassette('test_notifications_dismiss.yaml', cassette_library_dir='tests/cassettes_pre_2_9_2', record_mode='none'): + notifications = api.notifications() + api.notifications_dismiss(notifications[0]) @pytest.mark.vcr() def test_notifications_clear(api): -- cgit v1.2.3