2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 23:07:09 +00:00

fix test to match new page text

This commit is contained in:
2025-07-17 16:19:00 +02:00
parent db5be84d77
commit d7bfe83039

View File

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