diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-13 15:33:10 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-13 15:33:10 +0200 |
commit | b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 (patch) | |
tree | 3ecf530456b311057658b3b2e749ad017074455b /tests/test_notifications.py | |
parent | a17b20cfa142469019cd5982ba200510afc1f884 (diff) | |
download | mastodon.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.py | 3 |
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 @@ | |||
1 | import pytest | 1 | import pytest |
2 | import vcr | 2 | import vcr |
3 | import time | ||
3 | 4 | ||
4 | @pytest.fixture() | 5 | @pytest.fixture() |
5 | def mention(api2): | 6 | def mention(api2): |
@@ -9,11 +10,13 @@ def mention(api2): | |||
9 | 10 | ||
10 | @pytest.mark.vcr() | 11 | @pytest.mark.vcr() |
11 | def test_notifications(api, mention): | 12 | def 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() |
16 | def test_notifications_dismiss(api, mention): | 18 | def 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 | ||