aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
commitb1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 (patch)
tree3ecf530456b311057658b3b2e749ad017074455b /tests/test_notifications.py
parenta17b20cfa142469019cd5982ba200510afc1f884 (diff)
downloadmastodon.py-b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2.tar.gz
Add support for timed mutes, fix tests to actually pass with new setup
Diffstat (limited to 'tests/test_notifications.py')
-rw-r--r--tests/test_notifications.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_notifications.py b/tests/test_notifications.py
index 23efe41..d3f4f5c 100644
--- a/tests/test_notifications.py
+++ b/tests/test_notifications.py
@@ -1,5 +1,6 @@
1import pytest 1import pytest
2import vcr 2import vcr
3import time
3 4
4@pytest.fixture() 5@pytest.fixture()
5def mention(api2): 6def mention(api2):
@@ -9,11 +10,13 @@ def mention(api2):
9 10
10@pytest.mark.vcr() 11@pytest.mark.vcr()
11def test_notifications(api, mention): 12def test_notifications(api, mention):
13 time.sleep(3)
12 notifications = api.notifications() 14 notifications = api.notifications()
13 api.notifications(notifications[0]) 15 api.notifications(notifications[0])
14 16
15@pytest.mark.vcr() 17@pytest.mark.vcr()
16def test_notifications_dismiss(api, mention): 18def test_notifications_dismiss(api, mention):
19 time.sleep(3)
17 notifications = api.notifications() 20 notifications = api.notifications()
18 api.notifications_dismiss(notifications[0]) 21 api.notifications_dismiss(notifications[0])
19 22
Powered by cgit v1.2.3 (git 2.41.0)