Let Post.get_likes() yield Profile instances

This commit is contained in:
Alexander Graf
2018-04-28 17:32:13 +02:00
parent 4dcb23cfe5
commit 0e40da1c70
2 changed files with 9 additions and 12 deletions

View File

@@ -125,7 +125,7 @@ class TestInstaloaderLoggedIn(TestInstaloaderAnonymously):
def test_get_likes(self):
for post in instaloader.Profile.from_username(self.L.context, OWN_USERNAME).get_posts():
for like in post.get_likes():
print(like['username'])
print(like.username)
break
def test_explore_paging(self):