From 406b4590a9470aa0a965b46bbe06730d3a278f9b Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 5 Dec 2021 21:45:06 +0000 Subject: fix tests to match new error messages --- core/TESTS/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/TESTS/tests.py') diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py index 46513f6..3bcebc4 100644 --- a/core/TESTS/tests.py +++ b/core/TESTS/tests.py @@ -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 +"'") -- cgit v1.2.3