aboutsummaryrefslogtreecommitdiff
blob: 87c898a5aa5807ad506f991d153af22a6ab9c057 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import pytest

@pytest.fixture()
def mention(api2):
    status = api2.status_post('@mastodonpy_test hello!')
    yield status
    api2.status_delete(status)

@pytest.mark.vcr()
def test_notifications(api, mention):
    notifications = api.notifications()
    api.notifications(notifications[0])

@pytest.mark.vcr()
def test_notifications_dismiss(api, mention):
    notifications = api.notifications()
    api.notifications_dismiss(notifications[0])

@pytest.mark.vcr()
def test_notifications_clear(api):
    api.notifications_clear()
Powered by cgit v1.2.3 (git 2.41.0)