mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-14 18:47:04 +00:00
fix test to match new page text
This commit is contained in:
@@ -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 + "'")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user