2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-19 05:37:08 +00:00

removing new_since_parsing and fixing tests

This commit is contained in:
2025-10-11 23:31:15 +03:00
parent 905d9af978
commit e842ae1ca3
10 changed files with 21 additions and 39 deletions

View File

@@ -116,9 +116,9 @@ class URLTests(TestCase):
response = self.client.get("/statistics")
self.assertEqual(response.status_code, HTTPStatus.OK)
content = response.content.decode()
with open('_test_response.html', 'w') as f:
with open('_test_response_statistics.html', 'w') as f:
f.write(content)
ph = r"0 expeditions: 0 people, 0 caves, 0 wallets and 0 logbook entries"
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 + "'")