logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 1ac0c90037923c06a337b7236b678d8ca2b45e5f
parent f17e54a396a77f8668d227a41d37737aff340a84
Author: rinpatch <rinpatch@airmail.cc>
Date:   Fri, 27 Apr 2018 17:33:23 +0300

Fix unit test

Diffstat:

Mtests/unit/engines/test_acgsou.py14++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/tests/unit/engines/test_acgsou.py b/tests/unit/engines/test_acgsou.py @@ -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)