Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ynr/apps/elections/tests/test_election_list_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
)

Expand Down
2 changes: 1 addition & 1 deletion ynr/apps/elections/tests/test_elections_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 2 additions & 2 deletions ynr/apps/elections/uk/tests/test_finders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions ynr/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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

Expand Down