Skip to content

Commit c989085

Browse files
committed
fix URL pattern for pager in test case
1 parent 8d3a0f5 commit c989085

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

atwiki/test/test_core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ def test_get_list_tag(self):
9393
soup = self._api._request(self._uri.tag('曲', index=1))
9494
last_index = 1
9595
for link in soup.find('div', class_='cmd_tag').find_all('a'):
96-
if not link.attrs['href'].endswith('&p={}'.format(last_index + 1)):
96+
if not link.attrs['href'].endswith('?p={}'.format(last_index + 1)):
9797
break
9898
last_index += 1
99+
assert 750 <= last_index
100+
99101
pages = list(self._api.get_list('曲', _start=last_index))
100102
assert 1 <= len(pages) <= 50
101103

0 commit comments

Comments
 (0)