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

Commit 1bbf02fe authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Fix unittest about /stats endpoint

/stats endpoint is remove in spot since 87574704.
This patch removes the test about /stats endpoint, and it removes
stats dependency in about page.
parent 43f9265e
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -56,8 +56,5 @@ Searx can be added to your browser's search bar; moreover, it can be set as the
<h3>Installation/WSGI support?</h3>
<p>See the <a href="https://github.com/asciimoo/searx/wiki/Installation">installation and setup</a> wiki page</p>

<h3>How to debug engines?</h3>
<p><a href="{{ url_for('stats') }}">Stats page</a> contains some useful data about the engines used.</p>

</div>
{% include "__common__/aboutextend.html" ignore missing %}
+0 −1
Original line number Diff line number Diff line
@@ -735,7 +735,6 @@ def robots():
    return Response("""User-agent: *
Allow: /
Allow: /about
Disallow: /stats
Disallow: /preferences
Disallow: /*?*q=*
""", mimetype='text/plain')
+0 −5
Original line number Diff line number Diff line
@@ -96,11 +96,6 @@ class ViewsTestCase(TestCase):
            result.data
        )

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

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