diff options
author | John L. Villalovos <john@sodarock.com> | 2021-04-17 14:10:41 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-04-18 07:13:47 -0700 |
commit | 630901b30911af01da5543ca609bd27bc5a1a44c (patch) | |
tree | 38ae7cfe09cdceca0673834f0c4ff0a9ca6a9813 /gitlab/tests/test_base.py | |
parent | 83670a49a3affd2465f8fcbcc3c26141592c1ccd (diff) | |
download | gitlab-630901b30911af01da5543ca609bd27bc5a1a44c.tar.gz |
chore: fix E711 error reported by flake8
E711: Comparison to none should be 'if cond is none:'
https://www.flake8rules.com/rules/E711.html
Diffstat (limited to 'gitlab/tests/test_base.py')
-rw-r--r-- | gitlab/tests/test_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/tests/test_base.py b/gitlab/tests/test_base.py index a0adcb0..2fa4b1a 100644 --- a/gitlab/tests/test_base.py +++ b/gitlab/tests/test_base.py @@ -80,7 +80,7 @@ class TestRESTObject: assert {"foo": "bar"} == obj._attrs assert {} == obj._updated_attrs - assert None == obj._create_managers() + assert obj._create_managers() is None assert fake_manager == obj.manager assert fake_gitlab == obj.manager.gitlab @@ -112,7 +112,7 @@ class TestRESTObject: assert 42 == obj.get_id() obj.id = None - assert None == obj.get_id() + assert obj.get_id() is None def test_custom_id_attr(self, fake_manager): class OtherFakeObject(FakeObject): |