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

Unverified Commit fdb84e89 authored by Akhil's avatar Akhil
Browse files

Rollback changes to test_preferences

parent 0a95f091
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -184,9 +184,10 @@ class ViewsTestCase(SearxTestCase):
    def test_preferences(self):
    def test_preferences(self):
        result = self.app.get('/preferences')
        result = self.app.get('/preferences')
        self.assertEqual(result.status_code, 200)
        self.assertEqual(result.status_code, 200)
        self.assertIn(b'<form id="search_form" method="post" action="/preferences"', result.data)
        self.assertIn(b'<form method="post" action="/preferences" id="preferences" class="container">', result.data)
        self.assertIn(b'<div id="categories_container">', result.data)
        # self.assertIn(b'<form id="search_form" method="post" action="/preferences"', result.data)
        self.assertIn(b'<legend id="pref_ui_locale">Interface language</legend>', result.data)
        # self.assertIn(b'<div id="categories_container">', result.data)
        # self.assertIn(b'<legend id="pref_ui_locale">Interface language</legend>', result.data)


    def test_browser_locale(self):
    def test_browser_locale(self):
        result = self.app.get('/preferences', headers={'Accept-Language': 'zh-tw;q=0.8'})
        result = self.app.get('/preferences', headers={'Accept-Language': 'zh-tw;q=0.8'})