diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
commit | 3277ca777821e76955fb26d80788939a311db9db (patch) | |
tree | bef0749a451464d00e59fb3c685e6eb6d69a8a78 /tests/test_timeline.py | |
parent | 33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff) | |
download | mastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz |
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/test_timeline.py')
-rw-r--r-- | tests/test_timeline.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_timeline.py b/tests/test_timeline.py index 93ac8de..3e6fe22 100644 --- a/tests/test_timeline.py +++ b/tests/test_timeline.py | |||
@@ -5,9 +5,10 @@ from mastodon.Mastodon import MastodonAPIError,\ | |||
5 | MastodonUnauthorizedError | 5 | MastodonUnauthorizedError |
6 | 6 | ||
7 | @pytest.mark.vcr() | 7 | @pytest.mark.vcr() |
8 | def test_public_tl_anonymous(api_anonymous, status): | 8 | def test_public_tl_anonymous(api_anonymous, status3): |
9 | time.sleep(3) | ||
9 | tl = api_anonymous.timeline_public() | 10 | tl = api_anonymous.timeline_public() |
10 | assert status['id'] in map(lambda st: st['id'], tl) | 11 | assert status3['id'] in list(map(lambda st: st['id'], tl)) |
11 | 12 | ||
12 | @pytest.mark.vcr() | 13 | @pytest.mark.vcr() |
13 | def test_public_tl(api, status): | 14 | def test_public_tl(api, status): |
@@ -23,6 +24,7 @@ def test_unauthed_home_tl_throws(api_anonymous, status): | |||
23 | 24 | ||
24 | @pytest.mark.vcr() | 25 | @pytest.mark.vcr() |
25 | def test_home_tl(api, status): | 26 | def test_home_tl(api, status): |
27 | time.sleep(3) | ||
26 | tl = api.timeline_home() | 28 | tl = api.timeline_home() |
27 | assert status['id'] in map(lambda st: st['id'], tl) | 29 | assert status['id'] in map(lambda st: st['id'], tl) |
28 | 30 | ||