diff options
author | Miroslav Šedivý <[email protected]> | 2022-11-20 20:14:25 +0100 |
---|---|---|
committer | Miroslav Šedivý <[email protected]> | 2022-11-20 20:14:25 +0100 |
commit | 762861f3447698c6954016cf003758693dcc8bcc (patch) | |
tree | a43554b51e631bc62aa622fb0cf422d372303caa /tests/test_hooks.py | |
parent | 98760f650bcaafedead3f0b6e2b0c594ab857338 (diff) | |
download | mastodon.py-762861f3447698c6954016cf003758693dcc8bcc.tar.gz |
refactor: use is for None
Diffstat (limited to 'tests/test_hooks.py')
-rw-r--r-- | tests/test_hooks.py | 2 |
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() |
34 | def test_attribute_access(status): | 34 | def 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 |