Skip to content

Commit

Permalink
Add media likes/comments compat patch test for web api
Browse files Browse the repository at this point in the history
  • Loading branch information
ping committed Mar 3, 2018
1 parent 31755e0 commit ae7bdce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/web/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def test_carousel_media_info(self):
self.assertIsNotNone(results.get('link'))
self.assertIsNotNone(results.get('type'))
self.assertIsNotNone(results.get('images'))
# Check like and comment counts are returned
self.assertGreater(results.get('likes', {}).get('count', 0), 0)
self.assertGreater(results.get('comments', {}).get('count', 0), 0)

def test_media_comments(self):
results = self.api.media_comments(self.test_media_shortcode, count=20)
Expand Down

0 comments on commit ae7bdce

Please sign in to comment.