on master help sign in
change rest of test_startpage.py
commit83a06d276de3cbaa0dabc9eca990e1298140898a authorMichael Pfitzner <michael.pfitzner@physik.hu-berlin.de> dateFri 14 Dec 2018, 22:29 (8 years ago) parent5a20d9e
1 file changed+8−8
tests/unit/engines/test_startpage.py+8−8
tests/unit/engines/test_startpage.py+8−8
@@ -67,14 +67,14 @@ class TestStartpageEngine(SearxTestCase):
6767 self.assertEqual(results[0]['content'], 'This should be the content.')
6868
6969 html = """
70− <div class='result' style=' *width : auto; *margin-right : 10%;'>
70+ <li class="search-result search-item">
7171 <h3>
7272 <a href='http://www.google.com/aclk?sa=l&ai=C' id='title_2' name='title_2' >
7373 This should be the title
7474 </a>
7575 <span id='title_stars_2' name='title_stars_2'> </span>
7676 </h3>
77− <p class='desc clk'>
77+ <p class="search-item__body">
7878 This should be the content.
7979 </p>
8080 <p>
@@ -92,20 +92,20 @@ class TestStartpageEngine(SearxTestCase):
9292 Mis en surbrillance
9393 </A>
9494 </p>
95− </div>
96− <div class='result' style=' *width : auto; *margin-right : 10%;'>
95+ </li>
96+ <li class="search-result search-item">
9797 <h3>
9898 <span id='title_stars_2' name='title_stars_2'> </span>
9999 </h3>
100− <p class='desc clk'>
100+ <p class="search-item__body">
101101 This should be the content.
102102 </p>
103103 <p>
104104 <span class='url'>www.speed<b>test</b>.net/fr/
105105 </span>
106106 </p>
107− </div>
108− <div class='result' style=' *width : auto; *margin-right : 10%;'>
107+ </li>
108+ <li class="search-result search-item">
109109 <h3>
110110 <a href='http://this.should.be.the.link/' id='title_2' name='title_2' >
111111 This should be the title
@@ -127,7 +127,7 @@ class TestStartpageEngine(SearxTestCase):
127127 Mis en surbrillance
128128 </A>
129129 </p>
130− </div>
130+ </li>
131131 """
132132 response = mock.Mock(text=html.encode('utf-8'))
133133 results = startpage.response(response)