Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f72400b9 authored by Israel Yago Pereira's avatar Israel Yago Pereira
Browse files

Fix some test cases

parent d0e00cb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
{% endif %}

<div id="index">
    <img src="{{ url_for('static', filename='img/logo_searx_a.png') }}" alt="searx logo" />
    <img src="{{ url_for('static', filename='img/logo_searx_a.png') }}" alt="/e/ logo" />
    <img id="logo_inline" src="{{ url_for('static', filename='img/logo_searx_a.png') }}" alt="e logo" />
    {% include 'etheme/components/search.html' %}
</div>
+1 −8
Original line number Diff line number Diff line
@@ -74,9 +74,7 @@ class ViewsTestCase(SearxTestCase):
    def test_index_empty(self):
        result = self.app.post('/')
        self.assertEqual(result.status_code, 200)
        self.assertIn(b'<div class="text-hide center-block" id="main-logo">'
                      + b'<img class="center-block img-responsive" src="/static/themes/etheme/img/logo_searx_a.png"'
                      + b' alt="searx logo" />searx</div>', result.data)
        self.assertIn(b'<img src="/static/themes/etheme/img/logo_searx_a.png" alt="/e/ logo">', result.data)

    def test_index_html_post(self):
        result = self.app.post('/', data={'q': 'test'})
@@ -213,11 +211,6 @@ class ViewsTestCase(SearxTestCase):
            'Search language ignored browser preference.'
        )

    def test_stats(self):
        result = self.app.get('/stats')
        self.assertEqual(result.status_code, 200)
        self.assertIn(b'<h1>Engine stats</h1>', result.data)

    def test_robots_txt(self):
        result = self.app.get('/robots.txt')
        self.assertEqual(result.status_code, 200)