diff options
author | codl <[email protected]> | 2017-11-27 15:26:20 +0100 |
---|---|---|
committer | codl <[email protected]> | 2017-11-27 15:26:33 +0100 |
commit | 96f6e26f597661bfa2cdc7257e740a1d2ff1c9a4 (patch) | |
tree | 98b0ecd31718a6f301aeaa840e95369c2ee3af3d /tests/test_timeline.py | |
parent | ee802d39d0873a15a26ebca9110a55bd27b696d7 (diff) | |
download | mastodon.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.py | 7 |
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() |
13 | def test_public_tl(api, status): | 13 | def 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() |
19 | def test_home_tl(api, status): | 20 | def test_home_tl(api, status): |