Fix unit test

This commit is contained in:
rinpatch 2018-04-27 17:33:23 +03:00
parent f17e54a396
commit 1ac0c90037
No known key found for this signature in database
GPG key ID: DBBBD402C68A98DA

View file

@ -20,14 +20,22 @@ class TestAcgsouEngine(SearxTestCase):
self.assertEqual(acgsou.response(resp), [])
html = """
<html>
<table id="listTable" class="list_style table_fixed">
<thead class="tcat">
<tr>
tablehead
<th axis="string" class="l1 tableHeaderOver">发布时间</th>
<th axis="string" class="l2 tableHeaderOver">分类</th>
<th axis="string" class="l3 tableHeaderOver">资源名称</th>
<th axis="size" class="l4 tableHeaderOver">大小</th>
<th axis="number" class="l5 tableHeaderOver">种子</th>
<th axis="number" class="l6 tableHeaderOver">下载</th>
<th axis="number" class="l7 tableHeaderOver">完成</th>
<th axis="string" class="l8 tableHeaderOver">发布者/联盟</th>
</tr>
</thead>
<tbody class="tbody" id="data_list">
<tr class="alt1 ">
<tr class="alt1 ">
<td nowrap="nowrap">date</td>
<td><a href="category.html">testcategory</a></td>
<td style="text-align:left;">
@ -51,7 +59,9 @@ class TestAcgsouEngine(SearxTestCase):
</td>
<td><a href="random.html">user</a></td>
</tr>
</tbody>
</table>
</html>
"""
resp = mock.Mock(text=html)