From e826077e7195dcef871c2e1f1ac018d547bb5454 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Mon, 20 Sep 2021 11:51:08 +0200 Subject: [PATCH 05/59] misc: fix singleton-comparison pylint error (#56982) --- tests/test_attribute_kinds.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_attribute_kinds.py b/tests/test_attribute_kinds.py index 1f1d79ac..ad59f2f6 100644 --- a/tests/test_attribute_kinds.py +++ b/tests/test_attribute_kinds.py @@ -552,7 +552,7 @@ def test_profile_image(db, app, admin, mailoutbox): form.set('last_name', 'Doe') form.set('cityscape_image-clear', True) response = form.submit() - assert john().attributes.cityscape_image == None + assert john().attributes.cityscape_image is None # verify API serves None for empty profile images app.authorization = ('Basic', (admin.username, admin.username)) @@ -576,7 +576,7 @@ def test_profile_image(db, app, admin, mailoutbox): # clear image via API, by putting empty JSON response = app.put_json('/api/users/%s/' % john().uuid, params={'cityscape_image': ''}) - assert john().attributes.cityscape_image == None + assert john().attributes.cityscape_image is None # put back first image via API, by putting base64 encoded JSON with open('tests/200x200.jpg', 'rb') as f: @@ -611,7 +611,7 @@ def test_profile_image(db, app, admin, mailoutbox): # clear image via API, not using JSON response = app.put('/api/users/%s/' % john().uuid, params={'cityscape_image': ''}) - assert john().attributes.cityscape_image == None + assert john().attributes.cityscape_image is None # put back first image via API, not using JSON response = app.put( -- 2.30.2