summaryrefslogtreecommitdiffstats
path: root/core/TESTS/tests.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-11-23 11:19:05 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-11-23 11:19:05 +0000
commit857b4c580948cc748a09f968f030e4da2f3f00de (patch)
treed0f5876e8c450fbe9a49a392c9ba6d929580bf7c /core/TESTS/tests.py
parent32e487eca6b12b70cf6ced3b662d815a9bcbb7cb (diff)
downloadtroggle-857b4c580948cc748a09f968f030e4da2f3f00de.tar.gz
troggle-857b4c580948cc748a09f968f030e4da2f3f00de.tar.bz2
troggle-857b4c580948cc748a09f968f030e4da2f3f00de.zip
repairing tests
Diffstat (limited to 'core/TESTS/tests.py')
-rw-r--r--core/TESTS/tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/TESTS/tests.py b/core/TESTS/tests.py
index d0cce71..73fb052 100644
--- a/core/TESTS/tests.py
+++ b/core/TESTS/tests.py
@@ -165,10 +165,12 @@ class PageTests(TestCase):
def test_cave_kataster_not_found(self):
# database not loaded, so no caves found; so looks for a generic expopage and fails
- response = self.client.get("/1623/115.htm")
+ # NEEDS TO BE REDONE AFETR cave id rewriting removed after the data is fixed in all teh cave description
+ # pages that link to photos
+ response = self.client.get("/1234/115.htm")
self.assertEqual(response.status_code, HTTPStatus.NOT_FOUND)
content = response.content.decode()
- ph = r"Page not found 1623//115/115.htm"
+ ph = r"Page not found 1234/115.htm"
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")