From 18c6b3b90ff8bd607df18af86d092ac1205ffbf7 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Tue, 5 Jun 2018 22:10:31 +0200 Subject: New casettes, small fixes --- tests/test_lists.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/test_lists.py') 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 @@ import pytest +import time @pytest.fixture() def mastodon_list(api): @@ -54,7 +55,9 @@ def test_list_timeline(api, api2, mastodon_list): api.list_accounts_add(mastodon_list, user) status = api2.status_post("I have never stolen a ham in my life.", visibility="public") - assert status.id in map(lambda x: x.id, api.timeline_list(mastodon_list)) + time.sleep(2) + list_tl = list(map(lambda x: x.id, api.timeline_list(mastodon_list))) + assert status.id in list_tl api2.status_delete(status) api.account_unfollow(user) -- cgit v1.2.3