Selaa lähdekoodia

Correct test case

Add the alt in favicon
Cqoicebordel 10 vuotta sitten
vanhempi
commit
b2f5f65595
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      searx/tests/test_webapp.py

+ 1
- 1
searx/tests/test_webapp.py Näytä tiedosto

49
         )
49
         )
50
         result = self.app.post('/', data={'q': 'test'})
50
         result = self.app.post('/', data={'q': 'test'})
51
         self.assertIn(
51
         self.assertIn(
52
-            '<h3 class="result_title"> <img width="14" height="14" class="favicon" src="static/default/img/icon_youtube.ico" /><a href="http://first.test.xyz">First <span class="highlight">Test</span></a></h3>',  # noqa
52
+            '<h3 class="result_title"> <img width="14" height="14" class="favicon" src="static/default/img/icon_youtube.ico" alt="youtube" /><a href="http://first.test.xyz">First <span class="highlight">Test</span></a></h3>',  # noqa
53
             result.data
53
             result.data
54
         )
54
         )
55
         self.assertIn(
55
         self.assertIn(