From 07936060d1aa95933b392847e58a5b72f6406774 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 4 Feb 2022 21:04:50 +0100 Subject: preferences: Set autocomplete=off for form Otherwise you can change the value of a select, refresh the page and the preferences stay changed, leaving the wrong impression that they were saved. --- tests/unit/test_webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/unit/test_webapp.py') diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index fd7c72e60..7861a3b43 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -186,7 +186,7 @@ class ViewsTestCase(SearxTestCase): def test_preferences(self): result = self.app.get('/preferences') self.assertEqual(result.status_code, 200) - self.assertIn(b'
', result.data) + self.assertIn(b'', result.data) self.assertIn(b'', result.data) self.assertIn(b'', result.data) -- cgit v1.2.3