diff options
author | Miroslav Šedivý <[email protected]> | 2022-11-20 20:22:48 +0100 |
---|---|---|
committer | Miroslav Šedivý <[email protected]> | 2022-11-20 20:22:48 +0100 |
commit | f04d57acbc5ef639c0dc70fde800cf5c24d0b967 (patch) | |
tree | 7fd8ad2031c281ac2a7cbc297fb20edd2fa4152e /tests/test_timeline.py | |
parent | 762861f3447698c6954016cf003758693dcc8bcc (diff) | |
download | mastodon.py-f04d57acbc5ef639c0dc70fde800cf5c24d0b967.tar.gz |
refactor: use is for True/False
Diffstat (limited to 'tests/test_timeline.py')
-rw-r--r-- | tests/test_timeline.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_timeline.py b/tests/test_timeline.py index bc6728f..239fac3 100644 --- a/tests/test_timeline.py +++ b/tests/test_timeline.py | |||
@@ -60,8 +60,8 @@ def test_conversations(api, api2): | |||
60 | assert conversations | 60 | assert conversations |
61 | assert status.id in map(lambda x: x.last_status.id, conversations) | 61 | assert status.id in map(lambda x: x.last_status.id, conversations) |
62 | assert account.id in map(lambda x: x.accounts[0].id, conversations) | 62 | assert account.id in map(lambda x: x.accounts[0].id, conversations) |
63 | assert conversations[0].unread == True | 63 | assert conversations[0].unread is True |
64 | assert conversations2[0].unread == False | 64 | assert conversations2[0].unread is False |
65 | 65 | ||
66 | @pytest.mark.vcr() | 66 | @pytest.mark.vcr() |
67 | def test_min_max_id(api, status): | 67 | def test_min_max_id(api, status): |