Fix feed testcase

This commit is contained in:
Joel Lavikainen
2018-11-18 04:43:49 +02:00
parent b7beb72409
commit bf4c5bf3d9
-5
View File
@@ -79,11 +79,6 @@ class FeedTestCase(APITestCase):
feeds = Feed.objects.all()
serializer = FeedSerializer(feeds, many=True)
# Remove icon info because they are different when sent compared to what is returned
for tag in serializer.data[0]['tags']:
tag['icon'] = "empty"
for tag in response.data[0]['tags']:
tag['icon'] = "empty"
self.assertEqual(response.data, serializer.data)
def test_post_feed(self):