Refactored comments unittest to work with optional gravatar feature
This commit is contained in:
parent
48a3bd72c8
commit
e9eebf58e3
@ -305,7 +305,8 @@ class TestComments(unittest.TestCase):
|
||||
rv = loads(rv.data)
|
||||
|
||||
for key in comments.API.FIELDS:
|
||||
rv.pop(key)
|
||||
if key in rv:
|
||||
rv.pop(key)
|
||||
|
||||
self.assertListEqual(list(rv.keys()), [])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user