Unittest for Profile.has_viewable_story
This commit is contained in:
parent
52eb6d8e27
commit
be43ebb5c5
@ -4,6 +4,7 @@ import os
|
|||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
|
from itertools import islice
|
||||||
|
|
||||||
import instaloader
|
import instaloader
|
||||||
|
|
||||||
@ -112,6 +113,11 @@ class TestInstaloaderLoggedIn(TestInstaloaderAnonymously):
|
|||||||
def test_test_login(self):
|
def test_test_login(self):
|
||||||
self.assertEqual(OWN_USERNAME, self.L.test_login())
|
self.assertEqual(OWN_USERNAME, self.L.test_login())
|
||||||
|
|
||||||
|
def test_followees_and_stories(self):
|
||||||
|
profile = instaloader.Profile.from_username(self.L.context, OWN_USERNAME)
|
||||||
|
for f in islice(profile.get_followees(), PAGING_MAX_COUNT):
|
||||||
|
self.L.download_profile(f.username, profile_pic=False, download_stories_only=True)
|
||||||
|
|
||||||
def test_get_followees(self):
|
def test_get_followees(self):
|
||||||
profile = instaloader.Profile.from_username(self.L.context, OWN_USERNAME)
|
profile = instaloader.Profile.from_username(self.L.context, OWN_USERNAME)
|
||||||
for f in profile.get_followees():
|
for f in profile.get_followees():
|
||||||
|
Loading…
Reference in New Issue
Block a user