2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 12:41:09 +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 + "'")

View File

@@ -5,7 +5,7 @@
{"model": "core.personexpedition", "pk": 681, "fields":
{"non_public": false,
"expedition": 44,
"person": 250, "slugfield": null
"person": 250
}},
{"model": "core.person", "pk": 250, "fields":