fix tests to match new error messages

This commit is contained in:
Philip Sargent
2021-12-05 21:45:06 +00:00
parent b3aa99f008
commit 406b4590a9
4 changed files with 31 additions and 11 deletions

View File

@@ -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 +"'")