diff --git a/ynr/apps/elections/tests/test_election_list_view.py b/ynr/apps/elections/tests/test_election_list_view.py index fe49b87245..d90ebd6d7b 100644 --- a/ynr/apps/elections/tests/test_election_list_view.py +++ b/ynr/apps/elections/tests/test_election_list_view.py @@ -21,7 +21,7 @@ def test_single_election_posts_page(self): self.assertTrue( response.html.find( - "a", text="Member of Parliament for Camberwell and Peckham" + "a", string="Member of Parliament for Camberwell and Peckham" ) ) diff --git a/ynr/apps/elections/tests/test_elections_view.py b/ynr/apps/elections/tests/test_elections_view.py index c9e7061132..5317836cfe 100644 --- a/ynr/apps/elections/tests/test_elections_view.py +++ b/ynr/apps/elections/tests/test_elections_view.py @@ -12,6 +12,6 @@ def test_constituencies_page(self): # Just a smoke test to check that the page loads: response = self.app.get("/elections/parl.2015-05-07/") dulwich = response.html.find( - "a", text=re.compile(r"Dulwich and West Norwood") + "a", string=re.compile(r"Dulwich and West Norwood") ) self.assertTrue(dulwich) diff --git a/ynr/apps/elections/uk/tests/test_finders.py b/ynr/apps/elections/uk/tests/test_finders.py index c35d88300e..f9a7e177eb 100644 --- a/ynr/apps/elections/uk/tests/test_finders.py +++ b/ynr/apps/elections/uk/tests/test_finders.py @@ -192,7 +192,7 @@ def test_nonsense_postcode_searches_for_candidate(self, mock_requests): self.assertEqual(response.status_code, 200) self.assertIn("Search candidates", response) a = response.html.find( - "a", text=re.compile('Add "foo bar" as a new candidate') + "a", string=re.compile('Add "foo bar" as a new candidate') ) self.assertEqual( a["href"], "/person/create/select_election?name=foo bar" @@ -211,7 +211,7 @@ def test_nonascii_postcode(self, mock_requests): self.assertEqual(response.status_code, 200) self.assertIn("Search candidates", response) a = response.html.find( - "a", text=re.compile('Add "SW1A 1ӔA" as a new candidate') + "a", string=re.compile('Add "SW1A 1ӔA" as a new candidate') ) self.assertEqual( a["href"], "/person/create/select_election?name=SW1A 1\u04d4A" diff --git a/ynr/settings/base.py b/ynr/settings/base.py index a0853f18b1..1723474fce 100644 --- a/ynr/settings/base.py +++ b/ynr/settings/base.py @@ -215,7 +215,6 @@ def root(*path): "debug_toolbar.panels.templates.TemplatesPanel", "debug_toolbar.panels.cache.CachePanel", "debug_toolbar.panels.signals.SignalsPanel", - "debug_toolbar.panels.logging.LoggingPanel", "debug_toolbar.panels.redirects.RedirectsPanel", ] INTERNAL_IPS = ["127.0.0.1"] @@ -225,7 +224,6 @@ def root(*path): LANGUAGE_CODE = "en-gb" TIME_ZONE = "Europe/London" USE_I18N = False -USE_L10N = True USE_TZ = True DD_MM_DATE_FORMAT_PREFERRED = True