Refactored comments unittest to work with optional gravatar feature

This commit is contained in:
benjhess 2017-04-02 19:48:03 +00:00
parent 48a3bd72c8
commit e9eebf58e3

View File

@ -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()), [])