[twitter] improve tests
This commit is contained in:
parent
0afc360970
commit
79dc58b404
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class TwitterTest(BackendTest):
|
||||||
|
|
||||||
def test_twitter_list(self):
|
def test_twitter_list(self):
|
||||||
if self.backend.browser.username:
|
if self.backend.browser.username:
|
||||||
l = list(self.backend.iter_threads())
|
l = list(itertools.islice(self.backend.iter_threads(), 0, 20))
|
||||||
assert len(l)
|
assert len(l)
|
||||||
thread = self.backend.get_thread(l[0].id)
|
thread = self.backend.get_thread(l[0].id)
|
||||||
assert len(thread.root.content)
|
assert len(thread.root.content)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue