on master help sign in
Follow up /stats changes in unit test
cafd4cbNoémi Ványi
tests/unit/test_webapp.py+1−2
@@ -220,8 +220,7 @@ class ViewsTestCase(SearxTestCase):
220
220
221 def test_stats(self):
221 def test_stats(self):
222 result = self.app.get('/stats')
222 result = self.app.get('/stats')
223− self.assertEqual(result.status_code, 200)
223+ self.assertEqual(result.status_code, 404)
224− self.assertIn(b'<h1>Engine stats</h1>', result.data)
225
224
226 def test_robots_txt(self):
225 def test_robots_txt(self):
227 result = self.app.get('/robots.txt')
226 result = self.app.get('/robots.txt')