aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2022-11-21 20:17:18 +0200
committerGitHub <[email protected]>2022-11-21 20:17:18 +0200
commit943782afc394f52377223fb6b777946d5b2148ff (patch)
tree7fd8ad2031c281ac2a7cbc297fb20edd2fa4152e /tests/test_push.py
parent98760f650bcaafedead3f0b6e2b0c594ab857338 (diff)
parentf04d57acbc5ef639c0dc70fde800cf5c24d0b967 (diff)
downloadmastodon.py-943782afc394f52377223fb6b777946d5b2148ff.tar.gz
Merge pull request #269 from eumiro/none_identity
Refactor: use is for None/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)