forked from expo/troggle
fix tests to match new error messages
This commit is contained in:
@@ -162,7 +162,7 @@ class PageTests(TestCase):
|
||||
response = self.client.get('/cave/115')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
content = response.content.decode()
|
||||
ph = r"Cave not found in database"
|
||||
ph = r"Cave Identifier not found in database"
|
||||
phmatch = re.search(ph, content)
|
||||
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
|
||||
|
||||
@@ -435,7 +435,7 @@ class PageTests(TestCase):
|
||||
response = self.client.get('/survexfile/not_a_real_cave_number')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
content = response.content.decode()
|
||||
ph = r'Cave not found in database'
|
||||
ph = r'Cave Identifier not found in database'
|
||||
phmatch = re.search(ph, content)
|
||||
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph +"'")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user