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_push.py | |
parent | 762861f3447698c6954016cf003758693dcc8bcc (diff) | |
download | mastodon.py-f04d57acbc5ef639c0dc70fde800cf5c24d0b967.tar.gz |
refactor: use is for True/False
Diffstat (limited to 'tests/test_push.py')
-rw-r--r-- | tests/test_push.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_push.py b/tests/test_push.py index daa99c7..b815910 100644 --- a/tests/test_push.py +++ b/tests/test_push.py | |||
@@ -57,14 +57,14 @@ def test_push_update(api): | |||
57 | print(sub3) | 57 | print(sub3) |
58 | print(api.push_subscription()) | 58 | print(api.push_subscription()) |
59 | 59 | ||
60 | assert sub3.alerts.follow == False | 60 | assert sub3.alerts.follow is False |
61 | assert sub3.alerts.favourite == False | 61 | assert sub3.alerts.favourite is False |
62 | assert sub3.alerts.reblog == False | 62 | assert sub3.alerts.reblog is False |
63 | assert sub3.alerts.mention == False | 63 | assert sub3.alerts.mention is False |
64 | assert sub2.alerts.follow == True | 64 | assert sub2.alerts.follow is True |
65 | assert sub2.alerts.favourite == True | 65 | assert sub2.alerts.favourite is True |
66 | assert sub2.alerts.reblog == True | 66 | assert sub2.alerts.reblog is True |
67 | assert sub2.alerts.mention == True | 67 | assert sub2.alerts.mention is True |
68 | 68 | ||
69 | 69 | ||
70 | @pytest.mark.vcr(match_on=['path']) | 70 | @pytest.mark.vcr(match_on=['path']) |