aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodl <[email protected]>2017-11-27 15:26:20 +0100
committercodl <[email protected]>2017-11-27 15:26:33 +0100
commit96f6e26f597661bfa2cdc7257e740a1d2ff1c9a4 (patch)
tree98b0ecd31718a6f301aeaa840e95369c2ee3af3d /tests/test_timeline.py
parentee802d39d0873a15a26ebca9110a55bd27b696d7 (diff)
downloadmastodon.py-96f6e26f597661bfa2cdc7257e740a1d2ff1c9a4.tar.gz
update public tl test to also test local tl
Diffstat (limited to 'tests/test_timeline.py')
-rw-r--r--tests/test_timeline.py7
1 files changed, 4 insertions, 3 deletions
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):
11 11
12@pytest.mark.vcr() 12@pytest.mark.vcr()
13def test_public_tl(api, status): 13def test_public_tl(api, status):
14 tl = api.timeline_public() 14 public = api.timeline_public()
15 print(tl[0]) 15 local = api.timeline_local()
16 assert status['id'] in map(lambda st: st['id'], tl) 16 assert status['id'] in map(lambda st: st['id'], public)
17 assert status['id'] in map(lambda st: st['id'], local)
17 18
18@pytest.mark.vcr() 19@pytest.mark.vcr()
19def test_home_tl(api, status): 20def test_home_tl(api, status):
Powered by cgit v1.2.3 (git 2.41.0)