diff options
author | Lorenz Diener <[email protected]> | 2018-06-05 22:10:31 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-06-05 22:10:31 +0200 |
commit | 18c6b3b90ff8bd607df18af86d092ac1205ffbf7 (patch) | |
tree | 203729696d2639d5bf221168ad6c76a150130ab0 /tests/test_lists.py | |
parent | 36194fd60c8e5c6d30134134e32dd24981aee324 (diff) | |
download | mastodon.py-18c6b3b90ff8bd607df18af86d092ac1205ffbf7.tar.gz |
New casettes, small fixes
Diffstat (limited to 'tests/test_lists.py')
-rw-r--r-- | tests/test_lists.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_lists.py b/tests/test_lists.py index 61300c8..b3321c1 100644 --- a/tests/test_lists.py +++ b/tests/test_lists.py | |||
@@ -1,4 +1,5 @@ | |||
1 | import pytest | 1 | import pytest |
2 | import time | ||
2 | 3 | ||
3 | @pytest.fixture() | 4 | @pytest.fixture() |
4 | def mastodon_list(api): | 5 | def mastodon_list(api): |
@@ -54,7 +55,9 @@ def test_list_timeline(api, api2, mastodon_list): | |||
54 | api.list_accounts_add(mastodon_list, user) | 55 | api.list_accounts_add(mastodon_list, user) |
55 | 56 | ||
56 | status = api2.status_post("I have never stolen a ham in my life.", visibility="public") | 57 | status = api2.status_post("I have never stolen a ham in my life.", visibility="public") |
57 | assert status.id in map(lambda x: x.id, api.timeline_list(mastodon_list)) | 58 | time.sleep(2) |
59 | list_tl = list(map(lambda x: x.id, api.timeline_list(mastodon_list))) | ||
60 | assert status.id in list_tl | ||
58 | 61 | ||
59 | api2.status_delete(status) | 62 | api2.status_delete(status) |
60 | api.account_unfollow(user) | 63 | api.account_unfollow(user) |