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