mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-27 10:22:17 +00:00
FIX: Bloody smartquotes
This commit is contained in:
@@ -94,8 +94,8 @@ class UserRegistrationTest(LiveServerTestCase):
|
|||||||
# Read what the error is
|
# Read what the error is
|
||||||
alert = self.browser.find_element_by_css_selector(
|
alert = self.browser.find_element_by_css_selector(
|
||||||
'div.alert-danger').text
|
'div.alert-danger').text
|
||||||
# Note to future maintainers - mind out for smart quotes...
|
# TODO Use regex matching to handle smart/unsmart quotes...
|
||||||
self.assertIn("password fields didn't match", alert)
|
self.assertIn("password fields didn", alert)
|
||||||
|
|
||||||
# Passwords should be empty
|
# Passwords should be empty
|
||||||
self.assertEqual(password1.get_attribute('value'), '')
|
self.assertEqual(password1.get_attribute('value'), '')
|
||||||
|
|||||||
Reference in New Issue
Block a user