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_hooks.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_hooks.py')
-rw-r--r--tests/test_hooks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_hooks.py b/tests/test_hooks.py
index f0139e5..ab33d4c 100644
--- a/tests/test_hooks.py
+++ b/tests/test_hooks.py
@@ -32,7 +32,7 @@ def test_date_hook(status):
32 32
33@pytest.mark.vcr() 33@pytest.mark.vcr()
34def test_attribute_access(status): 34def test_attribute_access(status):
35 assert status.id != None 35 assert status.id is not None
36 with pytest.raises(AttributeError): 36 with pytest.raises(AttributeError):
37 status.id = 420 37 status.id = 420
38 \ No newline at end of file 38 \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)