2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-19 10:17:18 +00:00

fixing tests

This commit is contained in:
2025-10-20 13:50:05 +03:00
parent 4bbbdba571
commit ed43ab4bcf
3 changed files with 71 additions and 102 deletions

View File

@@ -116,8 +116,8 @@ class URLTests(TestCase):
response = self.client.get("/statistics")
self.assertEqual(response.status_code, HTTPStatus.OK)
content = response.content.decode()
with open('_test_response_statistics.html', 'w') as f:
f.write(content)
# with open('_test_response_statistics.html', 'w') as f:
# f.write(content)
ph = r"0 people, 0 caves, 0 wallets and 0 logbook entries"
phmatch = re.search(ph, content)
self.assertIsNotNone(phmatch, "Failed to find expected text: '" + ph + "'")