From 96f6e26f597661bfa2cdc7257e740a1d2ff1c9a4 Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 27 Nov 2017 15:26:20 +0100 Subject: update public tl test to also test local tl --- tests/test_timeline.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/test_timeline.py') diff --git a/tests/test_timeline.py b/tests/test_timeline.py index eae0e80..d713fca 100644 --- a/tests/test_timeline.py +++ b/tests/test_timeline.py @@ -11,9 +11,10 @@ def test_public_tl_anonymous(api_anonymous, status): @pytest.mark.vcr() def test_public_tl(api, status): - tl = api.timeline_public() - print(tl[0]) - assert status['id'] in map(lambda st: st['id'], tl) + public = api.timeline_public() + local = api.timeline_local() + assert status['id'] in map(lambda st: st['id'], public) + assert status['id'] in map(lambda st: st['id'], local) @pytest.mark.vcr() def test_home_tl(api, status): -- cgit v1.2.3