diff options
author | Lorenz Diener <[email protected]> | 2019-04-28 13:58:18 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-04-28 13:58:18 +0200 |
commit | ac7196c443db8453ccb6c3c2407c9e844ea4cbae (patch) | |
tree | a8e3b7f1f3e8c42ebbca7b4d2362e0e53b5d7670 /tests/test_timeline.py | |
parent | 06df1c281eb0825ec9f646960f4d9426eba7e081 (diff) | |
download | mastodon.py-ac7196c443db8453ccb6c3c2407c9e844ea4cbae.tar.gz |
Add conversation read marking + tests/docs
Diffstat (limited to 'tests/test_timeline.py')
-rw-r--r-- | tests/test_timeline.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_timeline.py b/tests/test_timeline.py index 3a75029..93ac8de 100644 --- a/tests/test_timeline.py +++ b/tests/test_timeline.py | |||
@@ -50,8 +50,12 @@ def test_conversations(api, api2): | |||
50 | status = api.status_post("@admin ilu bby ;3", visibility="direct") | 50 | status = api.status_post("@admin ilu bby ;3", visibility="direct") |
51 | time.sleep(2) | 51 | time.sleep(2) |
52 | conversations = api2.conversations() | 52 | conversations = api2.conversations() |
53 | api2.conversations_read(conversations[0]) | ||
54 | time.sleep(2) | ||
55 | conversations2 = api2.conversations() | ||
53 | api.status_delete(status) | 56 | api.status_delete(status) |
54 | assert conversations | 57 | assert conversations |
55 | assert status.id in map(lambda x: x.last_status.id, conversations) | 58 | assert status.id in map(lambda x: x.last_status.id, conversations) |
56 | assert account.id in map(lambda x: x.accounts[0].id, conversations) | 59 | assert account.id in map(lambda x: x.accounts[0].id, conversations) |
57 | 60 | assert conversations[0].unread == True | |
61 | assert conversations2[0].unread == False | ||