mirror of
https://github.com/searxng/searxng.git
synced 2024-11-19 19:00:10 +01:00
Fix unit test
This commit is contained in:
parent
f17e54a396
commit
1ac0c90037
@ -20,10 +20,18 @@ 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">
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user