get_followe{e,r}s yield Profiles rather than dicts

This commit is contained in:
Alexander Graf
2018-04-17 15:11:50 +02:00
parent 9d8175354b
commit 066c3de113
3 changed files with 17 additions and 21 deletions

View File

@@ -111,12 +111,12 @@ class TestInstaloaderLoggedIn(TestInstaloaderAnonymously):
def test_get_followees(self):
profile = instaloader.Profile.from_username(self.L.context, OWN_USERNAME)
for f in profile.get_followees():
print(f['username'])
print(f.username)
def test_get_followers(self):
profile = instaloader.Profile.from_username(self.L.context, OWN_USERNAME)
for f in profile.get_followers():
print(f['username'])
print(f.username)
def test_get_username_by_id(self):
self.assertEqual(PUBLIC_PROFILE.lower(),