Skip to content

Commit da376c8

Browse files
committed
test pagerize of tags
1 parent 9448afb commit da376c8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

atwiki/test/test_core.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ def test_get_list_tag(self):
9898
last_index += 1
9999
assert 750 <= last_index
100100

101+
count = 0
102+
for page in self._api.get_list('曲'):
103+
count += 1
104+
if 100 < count:
105+
break
106+
else:
107+
assert False, "unexpected number of pages for the tag"
108+
101109
pages = list(self._api.get_list('曲', _start=last_index))
102110
assert 1 <= len(pages) <= 50
103111

0 commit comments

Comments
 (0)