From d7bfe83039af1b7583281e3cb3f68b9d4fec618a Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 17 Jul 2025 16:19:00 +0200 Subject: [PATCH] fix test to match new page text --- core/TESTS/test_urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/TESTS/test_urls.py b/core/TESTS/test_urls.py index 861ae2c..3070d66 100644 --- a/core/TESTS/test_urls.py +++ b/core/TESTS/test_urls.py @@ -116,7 +116,9 @@ class URLTests(TestCase): response = self.client.get("/statistics") self.assertEqual(response.status_code, HTTPStatus.OK) content = response.content.decode() - ph = r"0 expeditions: 0 people, 0 caves and 0 logbook entries." + with open('_test_response.html', 'w') as f: + f.write(content) + ph = r"0 expeditions: 0 people, 0 caves, 0 wallets and 0 logbook entries" phmatch = re.search(ph, content) self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")