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
......@@ -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="">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>
{% include "__common__/aboutextend.html" ignore missing %}
......@@ -735,7 +735,6 @@ def robots():
return Response("""User-agent: *
Allow: /
Allow: /about
Disallow: /stats
Disallow: /preferences
Disallow: /*?*q=*
""", mimetype='text/plain')
......@@ -96,11 +96,6 @@ class ViewsTestCase(TestCase):
def test_stats(self):
result ='/stats')
self.assertEqual(result.status_code, 200)
self.assertIn(b'<h2>Engine stats</h2>',
def test_robots_txt(self):
result ='/robots.txt')
self.assertEqual(result.status_code, 200)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment