From f04d57acbc5ef639c0dc70fde800cf5c24d0b967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= <6774676+eumiro@users.noreply.github.com> Date: Sun, 20 Nov 2022 20:22:48 +0100 Subject: refactor: use is for True/False --- tests/test_push.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/test_push.py') 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): print(sub3) print(api.push_subscription()) - assert sub3.alerts.follow == False - assert sub3.alerts.favourite == False - assert sub3.alerts.reblog == False - assert sub3.alerts.mention == False - assert sub2.alerts.follow == True - assert sub2.alerts.favourite == True - assert sub2.alerts.reblog == True - assert sub2.alerts.mention == True + assert sub3.alerts.follow is False + assert sub3.alerts.favourite is False + assert sub3.alerts.reblog is False + assert sub3.alerts.mention is False + assert sub2.alerts.follow is True + assert sub2.alerts.favourite is True + assert sub2.alerts.reblog is True + assert sub2.alerts.mention is True @pytest.mark.vcr(match_on=['path']) -- cgit v1.2.3