aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šedivý <[email protected]>2022-11-20 20:22:48 +0100
committerMiroslav Šedivý <[email protected]>2022-11-20 20:22:48 +0100
commitf04d57acbc5ef639c0dc70fde800cf5c24d0b967 (patch)
tree7fd8ad2031c281ac2a7cbc297fb20edd2fa4152e /tests/test_push.py
parent762861f3447698c6954016cf003758693dcc8bcc (diff)
downloadmastodon.py-f04d57acbc5ef639c0dc70fde800cf5c24d0b967.tar.gz
refactor: use is for True/False
Diffstat (limited to 'tests/test_push.py')
-rw-r--r--tests/test_push.py16
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'])
Powered by cgit v1.2.3 (git 2.41.0)