We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e20ee27 + eebfa32 commit 6d3ca80Copy full SHA for 6d3ca80
1 file changed
atwiki/test/test_core.py
@@ -129,9 +129,20 @@ def test_get_list_tag(self):
129
assert len(pages) == 0
130
131
def test_get_tags(self):
132
+ # Get the first tag from the first listing.
133
song = next(self._api.get_tags('num'))
134
assert song['name'] == '曲'
135
assert 35000 < song['weight'] < 70000
136
137
+ # Get the first tag from the second listing.
138
not_song = next(self._api.get_tags('num', _start=2))
139
assert not_song['name'] != '曲'
140
+
141
+ # Ensure listing pagerize works. (retrieve 3 listing, 500 pages in each)
142
+ count = 0
143
+ for page in self._api.get_tags():
144
+ count += 1
145
+ if 500*3 <= count:
146
+ break
147
+ else:
148
+ assert False, "unexpected number of tags"
0 commit comments