diff options
author | Lorenz Diener <[email protected]> | 2022-11-21 20:17:18 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-21 20:17:18 +0200 |
commit | 943782afc394f52377223fb6b777946d5b2148ff (patch) | |
tree | 7fd8ad2031c281ac2a7cbc297fb20edd2fa4152e /tests/test_constructor.py | |
parent | 98760f650bcaafedead3f0b6e2b0c594ab857338 (diff) | |
parent | f04d57acbc5ef639c0dc70fde800cf5c24d0b967 (diff) | |
download | mastodon.py-943782afc394f52377223fb6b777946d5b2148ff.tar.gz |
Merge pull request #269 from eumiro/none_identity
Refactor: use is for None/True/False
Diffstat (limited to 'tests/test_constructor.py')
-rw-r--r-- | tests/test_constructor.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_constructor.py b/tests/test_constructor.py index ebc9b85..d997a5d 100644 --- a/tests/test_constructor.py +++ b/tests/test_constructor.py | |||
@@ -33,9 +33,9 @@ def test_constructor_missing_client_secret(): | |||
33 | 33 | ||
34 | @pytest.mark.vcr() | 34 | @pytest.mark.vcr() |
35 | def test_verify_version(api): | 35 | def test_verify_version(api): |
36 | assert api.verify_minimum_version("2.3.3") == True | 36 | assert api.verify_minimum_version("2.3.3") is True |
37 | assert api.verify_minimum_version("9999.9999.9999") == False | 37 | assert api.verify_minimum_version("9999.9999.9999") is False |
38 | assert api.verify_minimum_version("1.0.0") == True | 38 | assert api.verify_minimum_version("1.0.0") is True |
39 | 39 | ||
40 | def test_supported_version(api): | 40 | def test_supported_version(api): |
41 | assert Mastodon.get_supported_version() \ No newline at end of file | 41 | assert Mastodon.get_supported_version() \ No newline at end of file |